Re: Unable to link to libpq using gcc 2.95.3-5

Поиск
Список
Период
Сортировка
От Jason Tishler
Тема Re: Unable to link to libpq using gcc 2.95.3-5
Дата
Msg-id 20020225025940.GC2628@hp.com
обсуждение исходный текст
Ответ на Unable to link to libpq using gcc 2.95.3-5  ("Luis R. Alonso" <alonso@alumni.carnegiemellon.edu>)
Список pgsql-cygwin
Luis,

On Sun, Feb 24, 2002 at 06:03:27PM -0500, Luis R. Alonso wrote:
> I compile with the following command:
>
> g++ -I/usr/include/postgresql -L/lib -lpq

Where are the *.o or *.cc files in the command above?

> I get output that looks like:
>
> /temp/ccLZlm8Y.o(.text+0xe):simple.cxx: undefined reference to `PQfinish'
> [snip]

My WAG is that you are listing the libraries (i.e., -lpq) before the
object files.  Note that on Linux this will work -- under Cygwin it won't.

Jason

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

Предыдущее
От: Jason Tishler
Дата:
Сообщение: Re: Problem to sta
Следующее
От: s0lao@netscape.net (S. L.)
Дата:
Сообщение: Re: Need libpgtcl on cygwin -- available?