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

Поиск
Список
Период
Сортировка
От Marius Storm-Olsen
Тема Linkerror using ODBC on Solaris 2.6 (Sparc st. 5)
Дата
Msg-id 3949D5FF.58BC7EF3@storm-olsen.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Vincent Trussart
Дата:
Сообщение: Postgres JDBC driver : problem with timestamps.
Следующее
От: Agnieszka Lesinska
Дата:
Сообщение: HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected