Received: from landsraad.net (caladan.arrakis.es [195.5.65.34]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA77741 for ; Sun, 2 May 1999 14:27:37 -0400 (EDT) (envelope-from barreiro@arrakis.es) From: barreiro@arrakis.es Received: from localhost.localdomain (ia-196.arrakis.es [195.5.70.196]) by landsraad.net (8.9.3/8.9.3) with ESMTP id UAA06754; Sun, 2 May 1999 20:29:11 +0200 (MET DST) Message-ID: X-Mailer: XFMail 1.3 [p0] on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sun, 02 May 1999 21:37:47 +0200 (MEST) Sender: barreiro@localhost.localdomain To: pgsql-interfaces@postgresql.org Subject: Error linking C++ code. Cc: barreiro@arrakis.es I've problems using postgres with c++ I use postgresql 6.3.2, egcs-c++-1.1b, and the following comand when compiling the code bellow gcc -c -o lml.o lml_prueba.cc -I/usr/include/g++ -I/usr/include/pgsql -L/usr/lib/pgsql -lpq -lpq++ -lstdc++ link give me these errors: /usr/lib/libpq++.so: undefined reference to `clone__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_templat e2b 1i03Rep' /usr/lib/libpq++.so: undefined reference to `__dl__Q2t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template 2b1 i03RepPv' /usr/lib/libpq++.so: undefined reference to `__eh_pc' collect2: ld returned 1 exit status Can't anybody help me? Regards. Code: ------------------------------------------------------------------------------- /* Autor: Manuel de Vega Barreiro primera prueba de acceso a postgres usando c++ version: 0.1- 280499 */ #include #include int main () { cout << "Conexion correcta" <