Subject: RE: ODBC with CYGWIN32 B19.1
From: [email-masked] (Sergey Okhapkin)

25 Apr 1998 06:43:33 -0700
Message-ID: <01BD7059.1C9C0870.cygnus.gnu-win32@sos>
To: Cygnus Mailing List <[email-masked]>,
        "'Ludovic LANGE'"
	 <[email-masked]>

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
"[email-masked]" with one line of text: "help".