Re: cannot find odbc library to link to for c program - Mailing list pgsql-odbc

From Ludek Finstrle
Subject Re: cannot find odbc library to link to for c program
Date
Msg-id 20060322114221.GF6294@soptik.pzkagis.cz
Whole thread Raw
In response to cannot find odbc library to link to for c program  (Doug Stade <stade@codefast.com>)
List 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@4
>    lcfdb.lib(oconnect.obj) : error LNK2001: unresolved external symbol
>    _SQLFreeHand[2]le@8
>    lcfdb.lib(oconnect.obj) : error LNK2001: unresolved external symbol
>    _SQLAllocHan[3]dle@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

pgsql-odbc by date:

Previous
From: Ludek Finstrle
Date:
Subject: Re: Most recent driver aborts transaction after one error
Next
From: Ludek Finstrle
Date:
Subject: Re: newline in varchar causing funny behavior?