Problem linking to libpq.lib on Windows

Поиск
Список
Период
Сортировка
От Roberto de Figueiredo Ribeiro
Тема Problem linking to libpq.lib on Windows
Дата
Msg-id 3e0380f71d28430ba5172bf985172447@SEDEDF007BSA.intra.dnit
обсуждение исходный текст
Ответы Re: Problem linking to libpq.lib on Windows  (Dmitry Igrishin <dmitigr@gmail.com>)
Список pgsql-general

Hi list,

 

I’m building a platform on C++ that uses parts of the libpq-fe.h in it. I had been previously compiling it in linux, and all was fine. Switched to windows, now during linking it accuses an error, unable to find an object file.

 

This is the line I’m compiling with:

 

>: cl /I path\to\include main.cpp /link /libpath path\to\lib –opt:ref libpq.lib

 

And the error I get is:

 

>: LINK: fatal error LNK1181: cannot open input file ‘path\to\postgres\lib.obj’

 

Is this “lib.obj” file actually required by the linker? Or is this something that should be created on-the-fly, and perhaps the compiler is pointing somewhere else?

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

Предыдущее
От: Michael Lewis
Дата:
Сообщение: Re: Postgrest over foreign data wrapper
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Subquery to select max(date) value