Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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??)



pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group