From: Andre DOT Couture AT search-n-find DOT com (Andre Couture) Subject: YABP (Yet Another Beginner Problem)? 22 Jul 1997 18:55:19 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <33D4DBE1.92119539.cygnus.gnu-win32@search-n-find.com> References: <4B9D26C3380BD011A21F0000F8010A9BA871E7 AT imps0014 DOT us DOT dg DOT com> Reply-To: Andre DOT Couture AT search-n-find DOT com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------A42091BE60377F7CF4B0487A" X-Authentication-Warning: internet: Host [198.53.230.150] claimed to be thunder.search-n-find.com X-Mailer: Mozilla 4.01b6C [en] (X11; I; Linux 2.1.40 i686) Original-To: "'gnu-win32 AT cygnus DOT com'" X-Priority: 3 (Normal) Original-Sender: owner-gnu-win32 AT cygnus DOT com --------------A42091BE60377F7CF4B0487A Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I sent a message earlier, but seem it got lost... Anyway, here is my problem; I'm trying to compile a small program that uses ODBC, this program was originally written for UNIX. Now using "gcc-win32" under NT the source compiles ok but at link time I get this: undefined reference to 'SQLAllocEnv' I actually get this for all SQLxxx references. here is my command line: gcc -o prog.exe prog.o -lodbc32 -lm -loldnames Any idea somebody? Do I have to do something with dlltool??? Thanks Andre -- ------------------------------------------------------------------------ Andre Couture 938934 Ontario Inc. mailto:acouture AT search-n-find DOT com http://www.search-n-find.com/ --------------A42091BE60377F7CF4B0487A Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

I sent a message earlier, but seem it got lost...

Anyway, here is my problem;

I'm trying to compile a small program that uses ODBC, this program was originally written for UNIX.

Now using "gcc-win32" under NT the source compiles ok but at link time I get this:

undefined reference to 'SQLAllocEnv'

I actually get this for all SQLxxx references.

here is my command line:

gcc -o prog.exe prog.o -lodbc32 -lm -loldnames

Any idea somebody? Do I have to do something with dlltool???
 

Thanks
Andre

-- 


Andre Couture
938934 Ontario Inc.
mailto:acouture AT search-n-find DOT com
http://www.search-n-find.com/
  --------------A42091BE60377F7CF4B0487A-- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".