pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marius Storm-Olsen <marius@storm-olsen.com>
To: pgsql-interfaces@postgresql.org
Subject: Linkerror using ODBC on Solaris 2.6 (Sparc st. 5)
Date: Fri, 16 Jun 2000 09:23:44 +0200
Message-ID: <3949D5FF.58BC7EF3@storm-olsen.com> (raw)

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??)





Message-ID: <3949D5FF.58BC7EF3@storm-olsen.com>
Permalink:  ../3949D5FF.58BC7EF3@storm-olsen.com/
Also on:    postgresql.org/message-id/3949D5FF.58BC7EF3@storm-olsen.com

 · 

reply

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: marius@storm-olsen.com
  Subject: Re: Linkerror using ODBC on Solaris 2.6 (Sparc st. 5)
  In-Reply-To: <3949D5FF.58BC7EF3@storm-olsen.com>

* 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