Stephan Bergmann writes:
> Compiling the following returns me - executing the result.cgi - the
> error:
> ./result.cgi: can't load library 'libpq.so.2'
>
> gcc -lpq -I/usr/include/mysql -I/usr/local/pgsql/include
> -L/usr/local/pgsql/lib -L/usr/lib/mysql program.c
> -o result.cgi -Wall -DUNIX -lmysqlclient -lm
>
> All files are at its places. I use PostgreSQL 7.1.3.
>
> What I'm doing wrong?
You didn't mention what platform you're on.
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter