Re: cannot find odbc library to link to for c program

From: Ludek Finstrle <luf(at)pzkagis(dot)cz>
To: Doug Stade <stade(at)codefast(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: cannot find odbc library to link to for c program
Date: 2006-03-22 11:42:21
Message-ID: 20060322114221.GF6294@soptik.pzkagis.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

> On windows I get the following error that indicates to me that I need
> a comparable odbc library to link to on windows.
>
> % link /nologo /warn:3 /NODEFAULTLIB:libcpmt.lib
> /out:function_tester.exe
> *.obj *.res lcfdb.lib "/libpath:d:\host\f\postgresql-8.1.3\lib"
> "/libpath:D:\Progra~1\Micros~1\VC98\lib"
>
> setargv.obj commode.obj
>
> lcfdb.lib(oconnect.obj) : error LNK2001: unresolved external symbol
> _SQLDisconne[1]ct(at)4
> lcfdb.lib(oconnect.obj) : error LNK2001: unresolved external symbol
> _SQLFreeHand[2]le(at)8
> lcfdb.lib(oconnect.obj) : error LNK2001: unresolved external symbol
> _SQLAllocHan[3]dle(at)12
> ...
>
> function_tester.exe : fatal error LNK1120: 11 unresolved externals
> NMAKE : fatal error U1077: 'link' : return code '0x460'
> Stop.

This isn't psqlodbc related question. You may search the answer in
Microsoft KB. When you write application using ODBC you work with
ODBC manager not directly with the driver (psqlODBC, MyODBC, ...).

Regards,

Luf

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Ludek Finstrle 2006-03-22 11:57:51 Re: Future versions of psqlODBC
Previous Message Ludek Finstrle 2006-03-22 11:36:13 Re: Most recent driver aborts transaction after one error