Overview
Features
Download
Documentation
Community
Add-Ons & Services

Linking error while building::Using POCO:DATA:ODBC library

A general discussion forum.

Linking error while building::Using POCO:DATA:ODBC library

Postby suparswa2004 » 30 Jan 2013, 12:10

I am writing a C++ program on linux platform which basically connect the ORACLE database(version 10g) using POCO:DATA:ODBC library. While building the program getting some linking error. I have used three POCO libraries libPocoDataODBC,libPocoData, libPocoFoundation. Want to know is there any other library required? The error descriptions are given below

/disk2/voiamopabdev/POCOlib/lib/libPocoDataODBC.so: undefined reference to `SQLGetDiagField'
/disk2/voiamopabdev/POCOlib/lib/libPocoDataODBC.so: undefined reference to `SQLDrivers'
/disk2/voiamopabdev/POCOlib/lib/libPocoDataODBC.so: undefined reference to `SQLEndTran'
/disk2/voiamopabdev/POCOlib/lib/libPocoDataODBC.so: undefined reference to `SQLGetFunctions'
/disk2/voiamopabdev/POCOlib/lib/libPocoFoundation.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<bool>(bool)@GLIBCXX_3.4.9'
(EDIT - cut off)...


Thanks in advance . :)
suparswa2004
 
Posts: 4
Joined: 14 Jan 2013, 07:34

Re: Linking error while building::Using POCO:DATA:ODBC libra

Postby alex » 30 Jan 2013, 15:06

suparswa2004 wrote:Want to know is there any other library required?

From POCO side, you need to link with libodbc.so or libiodbc.so (driver manager libraries). On the "other side" (at runtime) of the ODBC manager, you'll need the Oracle ODBC driver libraries properly installed and configured.
alex
 
Posts: 1121
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Linking error while building::Using POCO:DATA:ODBC libra

Postby suparswa2004 » 31 Jan 2013, 15:33

Thanks alex for help. That problem is resolved after linking oracle odbc library. But now, I am getting another linking error. the error is given below.


/disk2/voiamopabdev/POCOlib/lib/libPocoFoundation.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<bool>(bool)@GLIBCXX_3.4.9'
/disk2/voiamopabdev/POCOlib/lib/libPocoFoundation.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<unsigned long>(unsigned long)@GLIBCXX_3.4.9'
/disk2/voiamopabdev/POCOlib/lib/libPocoDataODBC.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)@GLIBCXX_3.4.9'
/disk2/voiamopabdev/POCOlib/lib/libPocoFoundation.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::basic_istream<char, std::char_traits<char> >::_M_extract<double>(double&)@GLIBCXX_3.4.9'
/disk2/voiamopabdev/POCOlib/lib/libPocoFoundation.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long double>(long double)@GLIBCXX_3.4.9'
/disk2/voiamopabdev/POCOlib/lib/libPocoFoundation.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long>(long)@GLIBCXX_3.4.9'
/disk2/voiamopabdev/POCOlib/lib/libPocoFoundation.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<double>(double)@GLIBCXX_3.4.9'
c


Thanks in advance :)
suparswa2004
 
Posts: 4
Joined: 14 Jan 2013, 07:34

Re: Linking error while building::Using POCO:DATA:ODBC libra

Postby alex » 01 Feb 2013, 05:04

Let me Google that for you ...
alex
 
Posts: 1121
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron