Linkerror using ODBC on Solaris 2.6 (Sparc st. 5) - Mailing list pgsql-interfaces

From Marius Storm-Olsen
Subject Linkerror using ODBC on Solaris 2.6 (Sparc st. 5)
Date
Msg-id 3949D5FF.58BC7EF3@storm-olsen.com
Whole thread Raw
List pgsql-interfaces
Hi there!

I'm developing an application that's using odbc to connect to PostgreSQL
on a unix platform(Solaris 2.6 - Sun Sparc station 5)

I have a problem linking my application to libpsqlodbc.a
I get the following message:
ld: fatal: symbol `_fini´ is multiply defined:   (file /compilers/...../sparc-sun-solaris2.6/2.95.2/crti.o and file
../lib/libpsqlodbc.a(psqlodbc.o));
ld: fatal: symbol `_init´ is multiply defined:   (file /compilers/...../sparc-sun-solaris2.6/2.95.2/crti.o and file
../lib/libpsqlodbc.a(psqlodbc.o));

Any ideas?
Sincerly,
Marius Storm-Olsen

PS:
My file includes the following files:
#include <iodbc.h>
#include <isql.h>
#include <isqlext.h>

And is linked in the following manner:
g++ -Wall -o go main.o -L../lib -lpsqlodbc
(should it say -liodbc??)




pgsql-interfaces by date:

Previous
From: Vincent Trussart
Date:
Subject: Postgres JDBC driver : problem with timestamps.
Next
From: Agnieszka Lesinska
Date:
Subject: HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected