Re: [INTERFACES] Linking problems

Поиск
Список
Период
Сортировка
От Richard
Тема Re: [INTERFACES] Linking problems
Дата
Msg-id 38888ACE.926133A9@sfu.ca
обсуждение исходный текст
Ответ на RE: [INTERFACES] Linking problems  ("Ansley, Michael" <Michael.Ansley@intec.co.za>)
Ответы Re: [INTERFACES] Linking problems  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
Thank-you, Mike.  Before posting, I did do some searches on various
pgsql mail lists and rummaged through the docs, but I didn't find any
mention of this.  Not to say it isn't there.  But if it is, it isn't
very obvious.  I'd have expected it to be in the "libpq C++ Binding"
section of the Programmer docs.  It isn't.

Last night in I downgraded to 6.5.2, and my test app linked fine WITHOUT
the -lpq option!  Is that link option requirement specific to 6.5.3?

Cheers,
Richard


"Ansley, Michael" wrote:
> 
> You need to link to libpq as well (-lpq), so this line:
> gcc  -o testsql testsql.o -lm -lstdc++ -lpq++
> 
> should look like this:
> gcc  -o testsql testsql.o -lm -lstdc++ -lpq++ -lpq
> 
> Is this on the FAQ somewhere, because I've seen a couple of people asking
> about this?
>


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

Предыдущее
От: Mike
Дата:
Сообщение: Linking Errors
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] Linking problems