Hello Andr�, apparantly it seems as something went wrong with the static archive we've distributed, we will investigate that.
GCC 3.x uses other demangling, and is not binary compatible with previous GCC versions. Version of the database 7.6 will be compiled with a newer GCC, we won't change/add compilers for 7.5. Regards Alexander Schr�der SAP DB, SAP Labs Berlin > -----Original Message----- > From: Andre Reitz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 23, 2004 7:36 PM > To: Andre Reitz > Cc: Schroeder, Alexander; Maxdb > Subject: Re: How to compile SQLDBC program > > By the way, I get the errors below (with libSQLDBC.a) on > a SuSE 7.3 System. (Dynamic linking works) > > SuSE 7.3: (gcc version 2.95.3 20010315 (SuSE)) > --------- > 1. Works: > $ g++ test.cpp -I sqldbc/sdk/sqldbc/incl/ -L sqldbc/lib/ -lSQLDBC > > 2. Does not Work: > $ g++ test.cpp sqldbc/sdk/sqldbc/lib/libSQLDBC.a -I > sqldbc/sdk/sqldbc/incl/ > .... > libsqlthread.rel.o(.text+0x1576): undefined reference to > `sql57k_pfree' > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(libsqlthread.rel.o): In > function `sqltimedwaitsem': > libsqlthread.rel.o(.text+0x1659): undefined reference to > `pthread_cond_timedwait' > collect2: ld returned 1 exit status > > SuSE 9.2: (gcc version 3.3.4 (pre 3.3.5 20040809)) > --------- > 3. Does not Work: > $ g++ test.cpp -I sqldbc/sdk/sqldbc/incl/ -L sqldbc/lib/ -lSQLDBC > ..... > /tmp/ccJp25Re.o(.text+0x319): In function `main': > : undefined reference to > `SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()' > /tmp/ccJp25Re.o(.text+0x34e): In function `main': > : undefined reference to > `SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()' > /tmp/ccJp25Re.o(.text+0x378): In function `main': > : undefined reference to > `SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()' > collect2: ld returned 1 exit status > > 4. Does not Work: > $ g++ test.cpp sqldbc/sdk/sqldbc/lib/libSQLDBC.a -I > sqldbc/sdk/sqldbc/incl/ > ..... > /tmp/ccwVwjvd.o(.text+0x319): In function `main': > : undefined reference to > `SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()' > /tmp/ccwVwjvd.o(.text+0x34e): In function `main': > : undefined reference to > `SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()' > /tmp/ccwVwjvd.o(.text+0x378): In function `main': > : undefined reference to > `SQLDBC::SQLDBC_Environment::~SQLDBC_Environment [in-charge]()' > collect2: ld returned 1 exit status > > Where could the problem be? > Why does only 1. Work? > I also did a 'ranlib sqldbc/sdk/sqldbc/lib/libSQLDBC.a' on > both systems. > but it didn't help. > > > Greetings, and thank you very much in advance. > > Andre' > > > > Andre Reitz wrote: > > I called: > > > > $ ranlib sqldbc/sdk/sqldbc/lib/libSQLDBC.a > > and then: > > > > $ g++ -I sqldbc/sdk/sqldbc/incl/ test.cpp > sqldbc/sdk/sqldbc/lib/libSQLDBC.a > > > > I got: > > > > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function > > `SQLDBC::SQLDBC_Environment::SQLDBC_Environment(SQLDBC_IRuntime *)': > > SQLDBC.o(.text+0x228): undefined reference to > > `IFR_Environment::IFR_Environment(SQLDBC_IRuntime *)' > > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function > > `SQLDBC::SQLDBC_Environment::createConnection(void) const': > > SQLDBC.o(.text+0x2f2): undefined reference to > > `IFR_Environment::getConnection(void)' > > SQLDBC.o(.text+0x3fa): undefined reference to > > `IFR_Environment::releaseConnection(IFR_Connection *)' > > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function > > > `SQLDBC::SQLDBC_Environment::createConnection(SAPDBMem_IRawAll > ocator &) > > const': > > SQLDBC.o(.text+0x520): undefined reference to > > `IFR_Environment::getConnection(SAPDBMem_IRawAllocator &)' > > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function > > `SQLDBC::SQLDBC_ConnectProperties::SQLDBC_ConnectProperties(void)': > > SQLDBC.o(.text+0x5f3): undefined reference to > > `RTEMem_RteAllocator::Instance(void)' > > SQLDBC.o(.text+0x689): undefined reference to > > `RTEMem_RteAllocator::Instance(void)' > > SQLDBC.o(.text+0x690): undefined reference to > > > `IFR_ConnectProperties::IFR_ConnectProperties(SAPDBMem_IRawAll > ocator &, > > bool &)' > > SQLDBC.o(.text+0x6b2): undefined reference to > > `RTEMem_RteAllocator::Instance(void)' > > SQLDBC.o(.text+0x6e0): undefined reference to > > `RTEMem_RteAllocator::Instance(void)' > > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function > > `SQLDBC::SQLDBC_Connection::close(void)': > > SQLDBC.o(.text+0x771): undefined reference to > > `IFR_ErrorHndl::setMemoryAllocationFailed(void)' > > SQLDBC.o(.text+0x783): undefined reference to > > `IFR_ErrorHndl::setMemoryAllocationFailed(void)' > > SQLDBC.o(.text+0x798): undefined reference to > > `IFR_ConnectionItem::clearError(void)' > > SQLDBC.o(.text+0x7ad): undefined reference to > > `IFR_Connection::close(bool, bool)' > > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function > > `SQLDBC::SQLDBC_Connection::commitWorkRelease(void)': > > SQLDBC.o(.text+0x813): undefined reference to > > `IFR_ErrorHndl::setMemoryAllocationFailed(void)' > > SQLDBC.o(.text+0x825): undefined reference to > > `IFR_ErrorHndl::setMemoryAllocationFailed(void)' > > SQLDBC.o(.text+0x83a): undefined reference to > > `IFR_ConnectionItem::clearError(void)' > > SQLDBC.o(.text+0x84f): undefined reference to > > `IFR_Connection::close(bool, bool)' > > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(SQLDBC.o): In function > > `SQLDBC::SQLDBC_Connection::disconnect(void)': > > SQLDBC.o(.text+0x8b7): undefined reference to > > `IFR_ErrorHndl::setMemoryAllocationFailed(void)' > > SQLDBC.o(.text+0x8c9): undefined reference to > > `IFR_ErrorHndl::setMemoryAllocationFailed(void)' > > SQLDBC.o(.text+0x8de): undefined reference to > > `IFR_ConnectionItem::clearError(void)' > > .... > > .... > > libsqlthread.rel.o(.text+0x1576): undefined reference to > `sql57k_pfree' > > sqldbc/sdk/sqldbc/lib/libSQLDBC.a(libsqlthread.rel.o): In function > > `sqltimedwaitsem': > > libsqlthread.rel.o(.text+0x1659): undefined reference to > > `pthread_cond_timedwait' > > collect2: ld returned 1 exit status > > > > > > > > Schroeder, Alexander wrote: > > > >> You wrote: > >> > >> g++ sqldbc/sdk/sqldbc/lib/libSQLDBC.a test.cpp > >> I meant > >> > >> g++ test.cpp sqldbc/sdk/sqldbc/lib/libSQLDBC.a > >> If that does not help, would you try to apply 'ranlib' on > the archive. > >> If that helps, please give me a note, because it means > something in > >> our make factory does not work as expected. > >> > >> Regards > >> Alexander Schr�der > >> SAP DB, SAP Labs Berlin > >> > >> > > > > > -- > ______________________________________________________________ > ____________ > > Als Technologieunternehmen konzipieren und entwickeln wir > ma�geschneiderte Feedback- und > Monitoring-Systeme - wie beispielsweise L�sungen f�r > Beschwerde- und Ideenmanagement. > Mit dem Inquery� Survey Server bieten wir eine der > leistungsf�higsten Standardl�sungen f�r > Online-Umfragen mit dem Schwerpunkt auf der Messung von > Kundenzufriedenheit an. > ______________________________________________________________ > ____________ > > > Inworks GmbH > Andre Reitz, Leiter Entwicklung > H�rvelsinger Weg 39, 89081 Ulm, Germany > Tel +49 (0) 731 / 93807-21 > Fax +49(0)731/93807-18 > Internet: http://www.inworks.de > > > -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
