Re: connecting using libpq breaks printf

From: Aurimas Černius <aurisc4(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: connecting using libpq breaks printf
Date: 2009-02-18 16:35:38
Message-ID: 499C38DA.4010300@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

> Aurimas Černius<aurisc4(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Wilson 2009-02-18 16:36:44 Re: connecting using libpq breaks printf
Previous Message Joey Morris 2009-02-18 16:25:27 Re: connecting using libpq breaks printf