I am using libpq: the C application programmer's interface to PostgreSQL.
Compile the code:
sudo cc -o testprog testprog1.o testprog2.o -L/usr/local/pgsql/lib -lpq
But i get the following error:
collect2: error: ld returned 1 exit status
--
With kindest regards, William.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀