[DB-SIG] ODBC VC++ 5 Compilation
Donald A. Daugherty
bigd@europa.com
Tue, 19 Jan 1999 01:09:13 -0800
I get numerous errors from wchar.h and then a whole host of other errors
when I try to compile (I downloaded this just today).
I followed the instructions to the letter (I am only learning VC++ and my
C/C++ experience is limited). Can you shed any light on this? I am
downloading the current M$ universal data access SDK, it was the only thing
I saw when I went looking for the ODBC SDK. It implies that it includes the
ODBC stuff as well. Let me know, I am very interested in getting this
compiled. Thanks!
Donald A. Daugherty
--------------------Configuration: ODBC - Win32 Debug--------------------
Compiling...
mxODBC.cpp
G:\DevStudio\VC\INCLUDE\wchar.h(820) : error C2733: second C linkage of
overloaded function 'wmemchr' not allowed
G:\DevStudio\VC\INCLUDE\wchar.h(822) : error C2733: second C linkage of
overloaded function 'wcschr' not allowed
G:\DevStudio\VC\INCLUDE\wchar.h(824) : error C2733: second C linkage of
overloaded function 'wcspbrk' not allowed
G:\DevStudio\VC\INCLUDE\wchar.h(826) : error C2733: second C linkage of
overloaded function 'wcsrchr' not allowed
G:\DevStudio\VC\INCLUDE\wchar.h(828) : error C2733: second C linkage of
overloaded function 'wcsstr' not allowed
G:\Python\Odbc\Windows\mxODBC.cpp(308) : error C2059: syntax error :
'__stdcall'
G:\Python\Odbc\Windows\mxODBC.cpp(2251) : error C2664:
'PyDict_GetItemString' : cannot convert parameter 2 from 'unsigned char
[10]' to 'char *'
G:\Python\Odbc\Windows\mxODBC.cpp(2779) : warning C4273: 'strtod' :
inconsistent dll linkage. dllexport assumed.
G:\Python\Odbc\Windows\mxODBC.cpp(2795) : warning C4018: '==' :
signed/unsigned mismatch
G:\Python\Odbc\Windows\mxODBC.cpp(2851) : warning C4018: '==' :
signed/unsigned mismatch
G:\Python\Odbc\Windows\mxODBC.cpp(3936) : error C2664: 'SQLDescribeCol' :
cannot convert parameter 3 from 'char [20]' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4611) : error C2664: 'SQLTables' : cannot
convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4655) : error C2664: 'SQLTablePrivileges'
: cannot convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4700) : error C2664: 'SQLColumns' : cannot
convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4745) : error C2664: 'SQLColumnPrivileges'
: cannot convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4793) : error C2664: 'SQLForeignKeys' :
cannot convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4837) : error C2664: 'SQLPrimaryKeys' :
cannot convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4881) : error C2664: 'SQLProcedures' :
cannot convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4927) : error C2664: 'SQLProcedureColumns'
: cannot convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(4977) : error C2664: 'SQLSpecialColumns' :
cannot convert parameter 3 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(5024) : error C2664: 'SQLStatistics' :
cannot convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(5162) : error C2086: 'mxODBCursor_Type' :
redefinition
G:\Python\Odbc\Windows\mxODBC.cpp(5265) : error C2664: 'SQLConnect' : cannot
convert parameter 2 from 'char *' to 'unsigned char *'
G:\Python\Odbc\Windows\mxODBC.cpp(5565) : error C2086: 'mxODBC_Type' :
redefinition
G:\Python\Odbc\Windows\mxODBC.cpp(5797) : error C2070: illegal sizeof
operand
Error executing cl.exe.
ODBC.dll - 22 error(s), 3 warning(s)