This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: ODBC with CYGWIN32 B19.1


Ludovic LANGE wrote:
> #include <stdio.h>
> 
> #ifdef __CYGWIN32__
> typedef signed short RETCODE;
> typedef void * HENV;
> extern RETCODE SQLAllocEnv(HENV * phenv);
> extern RETCODE SQLFreeEnv(HENV phenv);
> #else
> #ifdef _WIN32

> But with CygWin32, with "gcc odbc.c -lodbc32" it doesn't work and ends
> with :
> C:\TEMP\cc0022121.o(.text+0x6d):odbc.c: undefined reference to
> `SQLAllocEnv'
> C:\TEMP\cc0022121.o(.text+0x95):odbc.c: undefined reference to
> `SQLFreeEnv'
> 

#ifdef __CYGWIN32__
#include <windows.h>
typedef signed short RETCODE;
typedef void * HENV;
extern PASCAL RETCODE SQLAllocEnv(HENV * phenv);
extern PASCAL RETCODE SQLFreeEnv(HENV phenv);
#else


-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]