[odb-users] boost date_time link error
Burton, Craig
crburton at tnsi.com
Fri May 18 20:43:05 EDT 2012
Hi odb-users,
I've never used the Boost libraries before, but I believe that it is necessary to do so in order to utilize the Oracle DATE type. My quick test seems to compile ok, but fails during link:
cburton at deep-thought: make
odb --database oracle --generate-schema --generate-query --profile boost -I/usr/local/odb/include -I/usr/local/oracle/instantclient_11_2/sdk/include
-I/usr/local/boost/boost_1_49_0 -I'.' NPAC.H odb --database oracle --generate-schema --generate-query --profile boost -I/usr/local/odb/include -I/usr/local/oracle/instantclient_11_2/sdk/include
-I/usr/local/boost/boost_1_49_0 -I'.' NPA.H odb --database oracle --generate-schema --generate-query --profile boost -I/usr/local/odb/include -I/usr/local/oracle/instantclient_11_2/sdk/include
-I/usr/local/boost/boost_1_49_0 -I'.' NPACImage.H
g++ -DDATABASE_ORACLE -I/usr/local/odb/include
-I/usr/local/oracle/instantclient_11_2/sdk/include
-I/usr/local/boost/boost_1_49_0 -I'.' -c loadNetworkSPData.C
g++ -DDATABASE_ORACLE -I/usr/local/odb/include
-I/usr/local/oracle/instantclient_11_2/sdk/include
-I/usr/local/boost/boost_1_49_0 -I'.' -c NPAC-odb.cxx
g++ -DDATABASE_ORACLE -I/usr/local/odb/include
-I/usr/local/oracle/instantclient_11_2/sdk/include
-I/usr/local/boost/boost_1_49_0 -I'.' -c NPA-odb.cxx
g++ -DDATABASE_ORACLE -I/usr/local/odb/include
-I/usr/local/oracle/instantclient_11_2/sdk/include
-I/usr/local/boost/boost_1_49_0 -I'.' -c NPACImage-odb.cxx
g++ -lodb -lodb-oracle -lboost_date_time loadNetworkSPData.o NPAC-odb.o
NPA-odb.o NPACImage-odb.o -o loadNetworkSPData
Undefined first referenced
symbol in file
typeinfo for odb::boost::date_time::special_value NPACImage-odb.o
vtable for odb::boost::date_time::special_value NPACImage-odb.o
ld: fatal: Symbol referencing errors. No output written to loadNetworkSPData
collect2: ld returned 1 exit status
make: *** [loadNetworkSPData] Error 1
Any thoughts on what I might be doing wrong? Thank you in advance.
Thank you,
Craig
________________________________
This e-mail message is for the sole use of the intended recipient(s)and may
contain confidential and privileged information of Transaction Network Services.
Any unauthorised review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
More information about the odb-users
mailing list