I am trying to compile a simple program with embedded SQL and have hada number of problems. My goal is to get a small, simple program thatwill connect to and communicate with our database before moving on to alarger project. I am using Postgres 6.3.2 on a Solaris 2.6 machine. I amnew to Postgres and embedded SQL, so go easy on me. I have read the documentation and have searched through bothmailing-list archives, and both were helpful. Unfortunately they havenot been enough to let me finish this project. I am trying to compileThomas Good's sample code from http://www.panix.com/~ugd/recipe.html. Icleared out the Perl code to simplify things. Anyway, when I try tocompile using...

I have looked at fe-connect.o and it '#includes' two header files,'socket.h' and 'netdb.h', that contain all of these functions. The files'socket.h' and 'netdb.h' appear to be fine, so I don't understand whatthe problem is. Is there a problem with the linking of libpq.a? Any helpwould be greatly appreciated. Thanks.