On Mon, 22 Jun 1998, Ricardo Peres wrote:

> Hello!
> I have some questions for you gurus regarding CGI programming and
> PostgreSQL databases:
> 
> 1-What is the simplest way to convert an "urlencoded" string
> (resultant from a HTTP POST or GET) into an ascii string? I have written a
> couple of functions do to that, but I'm have certain doubts as to their
> simplicity...
> 
> 2-When I try to compile a C/C++ program that accesses a PostgreSQL
> database, with something like "gcc -llibpq -o binfile sourcefile.c" I
> always get a "ld: cannot open -llibpq: No such file or directory" message!
> I am using RedHat 5.1 and PostgreSQL 6.2. Also I have /usr/lib in
> /etc/ld.so.conf and I have libpq.a in /usr/lib... Any ideas?

  Change '-llibpq' into '-lpq' then linker links libpq.so with
  sourcefile.o. ^^

> 
> Thanks a lot!
> 
> Ricardo Peres
> 

-------------------------------------------------------------------------------
Do you want to contact me ? Mail to the following address.
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]     (Samsung Software Membership 8th)
[ Linux the best choice. Pu Hulhul~ ]
-------------------------------------------------------------------------------

Reply via email to