Received: from genomics1.biosourcetechnologies.com ([209.179.110.105]) by hub.org (8.9.3/8.9.3) with ESMTP id QAA49555 for ; Wed, 29 Sep 1999 16:10:14 -0400 (EDT) (envelope-from wenjin.zheng@biosourcetechnologies.com) Received: by GENOMICS1 with Internet Mail Service (5.5.2448.0) id ; Wed, 29 Sep 1999 13:04:30 -0700 Message-ID: From: "wenjin.zheng" To: "'pgsql-interfaces@postgresql.org'" Subject: Errors from compiling examples for libpq++ Date: Wed, 29 Sep 1999 13:04:23 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Hi, I have tried to compile examples in libpq++. I got the following errors: postgres@vaca1>make all -f Makefile g++ -Wno-error -Wno-unused -Wl,-Bdynamic -I/U07/postgres/usr/src/pgsql/postgresql-6.5/include -o testlibpq0 testlibpq0.cc -L/U07/postgres/usr/src/pgsql/postgresql-6.5/lib -lpq++ Undefined first referenced symbol in file socket /U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so recv /U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so getprotobyname /U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so gethostbyname /U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so send /U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so setsockopt /U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so getsockname /U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so connect /U07/postgres/usr/src/pgsql/postgresql-6.5/lib/libpq++.so ld: fatal: Symbol referencing errors. No output written to testlibpq0 collect2: ld returned 1 exit status make: *** [testlibpq0] Error 1 Could anyone help me and let me know whether there is something wrong with the initial setup and how can I avoid the errors? I am using g++ (gcc 2.8.1) on Sun solaries 2.6. Thank you for help. Jim