delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/22/18:55:19

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
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'" <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

<HTML>


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

<P>Anyway, here is my problem;

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

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

<P>undefined reference to 'SQLAllocEnv'

<P>I actually get this for all SQLxxx references.

<P>here is my command line:

<P>gcc -o prog.exe prog.o -lodbc32 -lm -loldnames

<P>Any idea somebody? Do I have to do something with dlltool???
<BR>&nbsp;

<P>Thanks
<BR>Andre

<P>--&nbsp;
<HR><B><I><FONT COLOR="#008080"><FONT SIZE=+2>Andre Couture</FONT></FONT></I></B>
<BR><B><I><FONT COLOR="#4299A7">938934 Ontario Inc.</FONT></I></B>
<BR><FONT COLOR="#6666CC"><A HREF="mailto:acouture AT search-n-find DOT com">mailto:acouture AT search-n-find DOT com</A></FONT>
<BR><B><I><FONT COLOR="#6666CC"><A HREF="http://www.search-n-find.com/">http://www.search-n-find.com/</A></FONT></I></B>
<BR>&nbsp;</HTML>

--------------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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019