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