>> 2. When I set the -lpq and -lpq++ I know it is suppose to be including
>> those libraries but do I need to tell the system where those libraries
>> are? How does it know?
You add a -L switch to the command line to add library paths, and a -I
switch for include paths:
c++ -o test -L$PGHOME/lib -I$PGHOME/include -lpq -lpq++ test.c
or something...
MikeA