Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: Linking err...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 1056 of 1133
Post > Topic >>

Re: Linking error (cygwin, make, windows, sql)

by John Bode <john_bode@[EMAIL PROTECTED] > Mar 20, 2008 at 01:09 AM

On Mar 8, 1:21 pm, PG <gosa...@[EMAIL PROTECTED]
> wrote:
> I am trying to compile a simple ODBC and C example on Windows XP SP2.
> I have Cygwin_NT 5.1.
>

Note that questions about ODBC on Windows using Cygwin are not topical
for this newsgroup; our focus is on the C language itself, not
applications using C.  However, I think I know what your problem is:


[snip]

>
> Makefile
>
> CC=gcc
> INCPATH=-I/usr/include  -Iinclude
> LIBS=-L. -lodbc32

You need to specify the path to the libodbc32.a library, otherwise it
will only look in the standard library path.  Add the following to
your LIBS variable:

    -L/cygdrive/c/cygwin/lib/w32api

I think that's the right path, anyway.
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 6 Posts in Topic:
Linking error (cygwin, make, windows, sql)
PG <gosavip@[EMAIL PRO  2008-03-08 12:21:40 
Re: Linking error (cygwin, make, windows, sql)
Ian Collins <ian-news@  2008-03-17 15:18:53 
Re: Linking error (cygwin, make, windows, sql)
Flash Gordon <spam@[EM  2008-03-17 15:20:32 
Re: Linking error (cygwin, make, windows, sql)
Barry Schwarz <schwarz  2008-03-17 15:21:27 
Re: Linking error (cygwin, make, windows, sql)
John Bode <john_bode@[  2008-03-20 01:09:41 
Re: Linking error (cygwin, make, windows, sql)
John Bode <john_bode@[  2008-03-20 01:09:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 2:31:20 CDT 2008.