Linkerror using ODBC on Solaris 2.6 (Sparc st. 5)

From: Marius Storm-Olsen <marius(at)storm-olsen(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Linkerror using ODBC on Solaris 2.6 (Sparc st. 5)
Date: 2000-06-16 07:23:44
Message-ID: 3949D5FF.58BC7EF3@storm-olsen.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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??)

Browse pgsql-interfaces by date

  From Date Subject
Next Message Agnieszka Lesinska 2000-06-16 10:34:49 HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected
Previous Message Jim Caley 2000-06-15 14:46:05 Re: JDBC, Timestamps, and Fractions of a Second