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 5 of 6 Topic 1056 of 1134
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, cygwin, XP, etc. really aren't topical
here (your question isn't about the C language as such, which is what
this group focuses on).  In the future, you should direct such
questions to newsgroups devoted to embedded SQL or ODBC programming.
However, I think I know the answer to your problem.

[snip]

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

I suspect you need to add the path to the libodbc32.a library to your
LIBS variable, like so:

    -L/cygdrive/c/lib/w32api

Give that a shot, let me know if it works.
-- 
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 Sat Jul 26 3:41:42 CDT 2008.