它山之石,可以攻玉

业精于勤荒于嬉,行成于思毁于随

solaris使用正确的编译器CC/cc

        当在linux操作系统下对Oracle的OCI编程,使用gcc能够轻松通过,而在unix-solaris10对OCI进行编译时,会发现如下很多错误。当时也不知道错在什么地方,一时解决不了该问题,于是把SolarisStudio12.2-solaris-x86-pkg-ML.tar安装完之后,下面出现的问题也就能解决了。

未定义                  文件中的
 符号                       在文件中
__1cG__CrunKpure_error6F_v_         /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdbC__RTTI__1nDstdMlength_error__ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMout_of_range2T6M_v_        /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunIex_alloc6FI_pv_         /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6MpkcIrkn0C__v_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cH__rwstdRexcept_msg_string2t6MIE_v_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cH__rwstdbC__rwse_StringIndexOutOfRange_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdZ__RTTI__1nDstdJbad_alloc__ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Gassign6Mrk1II_r1_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunRex_chk_unexpected6F_v_  /openSUSE3000/fep/bin/libocci.so.10.1
__1cH__rwstdX__rwse_InvalidSizeParam_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cH__rwstdbB__rwse_PosBeyondEndOfString_ /openSUSE3000/fep/bin/libocci.so.10.1__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdbC__RTTI__1nDstdMout_of_range__ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdLlogic_error2T6M_v_         /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___I__getRep6MII_pnH__rwstdM__string_ref4Ccn0B_n0C____ /openSUSE3000/fep/bin/libocci.so.10.1
__1cH__rwstdY__rwse_UnexpectedNullPtr_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mrk1IIrkn0C__v_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMlength_error2T6M_v_        /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunGex_get6F_pv_            /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdJexceptionG__vtbl_          /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdJbad_allocG__vtbl_          /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMlength_errorG__vtbl_       /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunMex_rethrow_q6F_v_       /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMout_of_rangeG__vtbl_       /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hcompare6kMIIpkcI_i_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cH__rwstdX__rwse_ResultLenInvalid_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunSregister_exit_code6FpG_v_v_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunHex_skip6F_b_            /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Hreplace6MIIpkcIII_pc_ /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunIex_clean6F_v_           /openSUSE3000/fep/bin/libocci.so.10.1
__1cG__CrunKex_rethrow6F_v_         /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdbB__RTTI__1nDstdLlogic_error__ /openSUSE3000/fep/bin/libocci.so.10.1
__1cDstdLlogic_errorG__vtbl_        /openSUSE3000/fep/bin/libocci.so.10.1
c::c(N6,  (int0_t))                 /openSUSE3000/fep/bin/libocci.so.10.1
c::c(n6,  (int0_t))                 /openSUSE3000/fep/bin/libocci.so.10.1
__1c2K6Fpv_v_                       /openSUSE3000/fep/bin/libocci.so.10.1
__1c2k6Fpv_v_                       /openSUSE3000/fep/bin/libocci.so.10.1
ld: 致命的: 符号参照错误. 没有输出被写入/openSUSE3000/fep/bin/testdbci
collect2: ld returned 1 exit status
make: *** [/openSUSE3000/fep/bin/testdbci] Error 1
#

阅读更多
个人分类: unix系统开发
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭