Re: Libpq linker error

Поиск
Список
Период
Сортировка
От Jeroen T. Vermeulen
Тема Re: Libpq linker error
Дата
Msg-id 20040211162958.GE94664@xs4all.nl
обсуждение исходный текст
Ответ на Libpq linker error  (Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>)
Список pgsql-interfaces
On Wed, Feb 11, 2004 at 07:46:04AM -0800, Daniel Gerardo Lucero Baylon wrote:
> I compiled PostgreSQL 7.3.4 libpq for Win 32 using VC++ 7 compiler.
> 
> Compiler generates a libpq.lib file. Build a simple C program which opens and
> closes a database connection.
> 
> When try to link object program and libpq library, following error occurs:
> 
> ibpq.lib(fe-connect.obj) : error LNK2019: unresolved external symbol
> __imp__strdup referenced in function _PQconnectStart

Looks like you may not be linking your program against the standard
system libraries.  In this example, PQconnectStart is who's complaining
about a missing function--it's not the function being complained about.


Jeroen



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Daniel Gerardo Lucero Baylon
Дата:
Сообщение: Libpq linker error
Следующее
От: Daniel Gerardo Lucero Baylon
Дата:
Сообщение: How to compile