This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: ODBC with CYGWIN32 B19.1
- To: Cygnus Mailing List <gnu-win32 at cygnus dot com>, "'Ludovic LANGE'" <llange at capgemini dot fr>
- Subject: RE: ODBC with CYGWIN32 B19.1
- From: Sergey Okhapkin <sos at buggy dot prospect dot com dot ru>
- Date: Sat, 25 Apr 1998 14:47:45 +0400
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".