

|
 |
| Programming > C Moderated > Re: Linking err... |
|
| << 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:
|
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:

|
|
|
|