> 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