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

Поиск
Список
Период
Сортировка
От Ludek Finstrle
Тема Re: cannot find odbc library to link to for c program
Дата
Msg-id 20060322114221.GF6294@soptik.pzkagis.cz
обсуждение исходный текст
Ответ на cannot find odbc library to link to for c program  (Doug Stade <stade@codefast.com>)
Список 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 по дате отправления:

Предыдущее
От: Ludek Finstrle
Дата:
Сообщение: Re: Most recent driver aborts transaction after one error
Следующее
От: Ludek Finstrle
Дата:
Сообщение: Re: newline in varchar causing funny behavior?