Received: from pc63.rp-plus.de (root@ppp06580.01019freenet.de [212.81.153.180]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA88658 for ; Tue, 4 May 1999 12:46:56 -0400 (EDT) (envelope-from Michael.Meskes@gmx.net) Received: (from meskes@localhost) by pc63.rp-plus.de (8.9.3/8.9.3/Debian/GNU) id IAA01708; Tue, 4 May 1999 08:45:27 +0200 Date: Tue, 4 May 1999 08:45:27 +0200 From: Michael Meskes To: barreiro@arrakis.es Cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Error linking C++ code. Message-ID: <19990504084527.A1698@gmx.net> Mail-Followup-To: barreiro@arrakis.es, pgsql-interfaces@postgreSQL.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from barreiro@arrakis.es on Mon, May 03, 1999 at 10:09:32PM +0200 On Mon, May 03, 1999 at 10:09:32PM +0200, barreiro@arrakis.es wrote: > gcc -c -o lml.o lml_prueba.cc -I/usr/include/g++ -I/usr/include/pgsql > -L/usr/lib/pgsql -lpq -lpq++ -lstdc++ Hmm, this command line is kind of strange. First of all the c++ compiler is named g++ not gcc. Then it seems you only want to compile and link the code (hence the -c) but why do you give linker options (-l*)? Anyway, I removed the -c option on my system (PostgreSQL 6.4.2 and egcc 1.1.2) and it works nicely. Michael -- Michael Meskes | Go SF 49ers! Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire! Tel.: (+49) 2431/72651 | Use Debian GNU/Linux! Email: Michael.Meskes@gmx.net | Use PostgreSQL!