Re: connecting using libpq breaks printf

Поиск
Список
Период
Сортировка
От Aurimas Černius
Тема Re: connecting using libpq breaks printf
Дата
Msg-id 499C3267.30308@gmail.com
обсуждение исходный текст
Ответ на connecting using libpq breaks printf  (Joey Morris <rjmorris12@gmail.com>)
Ответы Re: connecting using libpq breaks printf  (Joey Morris <rjmorris12@gmail.com>)
Re: connecting using libpq breaks printf  (Sam Mason <sam@samason.me.uk>)
Список pgsql-general
Hi,

Looks like you accidently wrote to me personnally, not to mailing list.

> On Wed, Feb 18, 2009 at 10:01 AM, Aurimas Černius<aurisc4@gmail.com>  wrote:
>> Did you use *exactly* the same command line to compile both versions?
>> What is that command line(s)?
>
> Yes, I used the same compilation command line for both versions:
>
> gcc -o pq_test -I"C:\Program Files\PostgreSQL\8.3\include"
> -L"C:\Program Files\PostgreSQL\8.3\lib" -lpq pq_test.c


Libraries should be places after the source file, that is (not sure
about -L, but for -l surely):

gcc -o pq_test -I"C:\Program Files\PostgreSQL\8.3\include" pq_test.c
-L"C:\Program Files\PostgreSQL\8.3\lib" -lpq

I don't if that's the problem, but it's not hard to try :)

--
Aurimas

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

Предыдущее
От: Andrei Kovalevski
Дата:
Сообщение: Re: Mammoth replicator
Следующее
От: Joey Morris
Дата:
Сообщение: Re: connecting using libpq breaks printf