Received: from callisto.super.nu (callisto.super.nu [216.169.108.47]) by hub.org (8.10.1/8.10.1) with ESMTP id e5G7OkI33293 for ; Fri, 16 Jun 2000 03:24:46 -0400 (EDT) Received: from storm-olsen.com (duke.kog.no [193.71.176.208]) by callisto.super.nu (8.8.8/8.8.8) with ESMTP id DAA13430 for ; Fri, 16 Jun 2000 03:20:59 -0400 Message-ID: <3949D5FF.58BC7EF3@storm-olsen.com> Date: Fri, 16 Jun 2000 09:23:44 +0200 From: Marius Storm-Olsen X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Linkerror using ODBC on Solaris 2.6 (Sparc st. 5) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200006/85 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 #include #include And is linked in the following manner: g++ -Wall -o go main.o -L../lib -lpsqlodbc (should it say -liodbc??)