Hi.
I'm getting troubles when I compile an old Visual C++ 1.52 application, which access to a Sybase 11.9 SQL server. I had installed Visual C++ 1.52 and Sybase Open Client/C 10.0.3, and I had tried to compile the Visual C++ project (A year ago I compile the same project without problems), but I'm getting this error messages:
...
and so on
...
It seems that cstypes.h have a syntax error, but I haven't modified that file in anyway (It's the original delivered by Sybase).
This is the content of "cstypes.h" from line 718 (The error refer line 724, which start with "typedef CS_RETCODE":
Where is the problem? What I'm doing wrong? Anybody can help me?
Thanks in advance.
ifa
I'm getting troubles when I compile an old Visual C++ 1.52 application, which access to a Sybase 11.9 SQL server. I had installed Visual C++ 1.52 and Sybase Open Client/C 10.0.3, and I had tried to compile the Visual C++ project (A year ago I compile the same project without problems), but I'm getting this error messages:
Code:
----------START---------------
Compiling...
c:\project\comunes\dhot03.cpp
Code:
c:\sybase\include\cstypes.h(724) : error C2143: syntax error : missing ')' before '*'
Code:
c:\sybase\include\cstypes.h(724) : error C2239: unexpected token '*' following declaration of '__stdcall'
c:\sybase\include\cstypes.h(735) : error C2226: syntax error : unexpected type '__stdcall'
c:\sybase\include\cstypes.h(738) : error C2226: syntax error : unexpected type '__stdcall'
c:\sybase\include\cstypes.h(741) : error C2226: syntax error : unexpected type '__stdcall'
c:\sybase\include\cstypes.h(744) : error C2226: syntax error : unexpected type '__stdcall'
c:\sybase\include\cstypes.h(748) : error C2226: syntax error : unexpected type '__stdcall'
c:\sybase\include\cstypes.h(783) : error C2501: 'CS_THRDC_FUNC' : missing decl-specifiers
c:\sybase\include\cstypes.h(783) : error C2146: syntax error : missing ';' before identifier 'create_mutex_fn'
and so on
...
Code:
CL returned error code 2.
DHOT03.CPP - 102 error(s), 0 warning(s)
----------END---------------
It seems that cstypes.h have a syntax error, but I haven't modified that file in anyway (It's the original delivered by Sybase).
This is the content of "cstypes.h" from line 718 (The error refer line 724, which start with "typedef CS_RETCODE":
Code:
-----------START--------------
/*
** Definition of a pointer to a function for all conversion routines.
*/
CS_START_EXTERN_C
Code:
typedef CS_RETCODE (CS_PUBLIC * CS_CONV_FUNC)PROTOTYPE((
Code:
CS_CONTEXT *context,
CS_DATAFMT *srcfmt,
CS_VOID *src,
CS_DATAFMT *destfmt,
CS_VOID *dest,
CS_INT *destlen
));
/*
** Pointers to the thread primitive functions used in Open Client.
*/
typedef CS_RETCODE (CS_PUBLIC * CS_THRDM_FUNC)PROTOTYPE((
CS_THRDRES *resource
));
typedef CS_RETCODE (CS_PUBLIC * CS_THRDE_FUNC)PROTOTYPE((
CS_THRDRES *resource
));
typedef CS_RETCODE (CS_PUBLIC * CS_THRDC_FUNC)PROTOTYPE((
CS_THRDRES **resource
));
typedef CS_RETCODE (CS_PUBLIC * CS_THRDW_FUNC)PROTOTYPE((
CS_THRDRES *resource,
CS_INT millisecs
));
typedef CS_RETCODE (CS_PUBLIC * CS_THRDID_FUNC)PROTOTYPE((
CS_VOID *buffer,
CS_INT buflen,
CS_INT *outlen
));
CS_END_EXTERN_C
-----------END--------------
Where is the problem? What I'm doing wrong? Anybody can help me?
Thanks in advance.
ifa