

|
 |
| Programming > C Moderated > Re: Linking err... |
|
| << 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:
|
PG <gosavip@[EMAIL PRO |
2008-03-08 12:21:40 |
|
Ian Collins <ian-news@ |
2008-03-17 15:18:53 |
|
Flash Gordon <spam@[EM |
2008-03-17 15:20:32 |
|
Barry Schwarz <schwarz |
2008-03-17 15:21:27 |
|
John Bode <john_bode@[ |
2008-03-20 01:09:41 |
|
John Bode <john_bode@[ |
2008-03-20 01:09:43 |
|
Post A Reply:

|
|
|
|