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?

Thanks a lot!

Ricardo Peres

Reply via email to