Home » Developer & Programmer » Precompilers, OCI & OCCI » Linking Error (Sun Solaris)
Linking Error [message #444830] Wed, 24 February 2010 07:14
mad_man12
Messages: 5
Registered: February 2010
Location: india
Junior Member
Hi Guys,

I am facing a issue while trying to build exe for following CPP
file, please Advice if i am missing something

#include<iostream.h>
#include<occi.h>
using namespace std;
using namespace oracle::occi;
int main(){
Environment *envr;
envr=Environment::createEnvironment(Environment::DEFAULT);
cout<<"test";
}



g++ -I/oraclehome/oracle/product/10.2.0/IMITEST/rdbms/public/ -L/oraclehome/oracle/product/10.2.0/IMITEST/lib -locci -lclntsh -m64 test_occi.cpp

In file included from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/backward/iostream.h:31,from test_occi.cpp:1:

/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.

Undefined first referenced
symbol in file
__1cG__CrunKpure_error6F_v_ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so
__1cDstdbC__RTTI__1nDstdMlength_error__ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so
__1cDstdMout_of_range2T6M_v_ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so
__1cDstdLlogic_error2t6Mrkn0AMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc_____v_ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so
__1cG__CrunIex_alloc6FL_pv_ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so
__1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6MpkcLrkn0C__v_ /oraclehome/oracle/product/10.2.0/IMITEST/lib/libocci.so

Kindly let me know if any details are needed

[Updated on: Wed, 24 February 2010 08:26]

Report message to a moderator

Previous Topic: using occi in external XA applications.
Next Topic: using occi in external XA applications and/or in pro*c/c++
Goto Forum:
  


Current Time: Thu Mar 28 17:35:41 CDT 2024