Search Postgresql Archives

Re: connecting using libpq breaks printf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


Aurimas Černius<aurisc4@xxxxxxxxx>  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

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux