| From: | Michael Meskes <meskes(at)postgreSQL(dot)org> |
|---|---|
| To: | barreiro(at)arrakis(dot)es |
| Cc: | pgsql-interfaces(at)postgreSQL(dot)org |
| Subject: | Re: [INTERFACES] Error linking C++ code. |
| Date: | 1999-05-04 06:45:27 |
| Message-ID: | 19990504084527.A1698@gmx.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
On Mon, May 03, 1999 at 10:09:32PM +0200, barreiro(at)arrakis(dot)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(dot)Meskes(at)gmx(dot)net | Use PostgreSQL!
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hannu Krosing | 1999-05-04 06:59:19 | Re: [INTERFACES] Field types (was Re: Return value of int) |
| Previous Message | Pavel PaJaSoft Janousek | 1999-05-04 06:40:17 | Re: [INTERFACES] Error linking C++ code. |