Re: connecting using libpq breaks printf - Mailing list pgsql-general

From Aurimas Černius
Subject Re: connecting using libpq breaks printf
Date
Msg-id 499C38DA.4010300@gmail.com
Whole thread Raw
In response to Re: connecting using libpq breaks printf  (Joey Morris <rjmorris12@gmail.com>)
Responses Re: connecting using libpq breaks printf
List pgsql-general
Hi,


> Aurimas Černius<aurisc4@gmail.com>  wrote on Wed, Feb 18, 2009 at 06:08:07PM +0200:
>> 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 :)
>
> Thanks for the suggestion, but unfortunately it didn't fix this problem.


How do you run the program, in console or by double clicking on
executable. Try the second. Does the console window apear on the screen?

--
Aurimas

pgsql-general by date:

Previous
From: Joey Morris
Date:
Subject: Re: connecting using libpq breaks printf
Next
From: David Wilson
Date:
Subject: Re: connecting using libpq breaks printf