From: Michael Meskes <meskes@postgreSQL.org>
To: barreiro@arrakis.es
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Error linking C++ code.
Date: Tue, 4 May 1999 08:45:27 +0200
Message-ID: <19990504084527.A1698@gmx.net> (raw)
In-Reply-To: <XFMail.990503220931.barreiro@arrakis.es>
References: <XFMail.990503220931.barreiro@arrakis.es>
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!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: meskes@postgreSQL.org, barreiro@arrakis.es
Subject: Re: [INTERFACES] Error linking C++ code.
In-Reply-To: <19990504084527.A1698@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox