免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2574 | 回复: 2
打印 上一主题 下一主题

OCCI 连接问题,SOS!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-02-24 23:09 |只看该作者 |倒序浏览
/opt/SUNWspro/bin/CC -mt -g -compat=4 -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION -DSUN_CC_HAS_PVFC_BUG \
-DUNIX_SVR4 -DUNIX -DSOLARIS -DMULTITHREAD -mt -R./ -xildoff  \
-o dbgw DBGateWay.o DebugLog.o IniFile.o OciConnection.o OciQuery.o OciStoredProc.o OraDB.o RSMessage.o llc.o mainpro.o \
-L/export/10g/app/oracle -lstdc++ -locci -lclntsh  -lsocket -ldl -lnsl -lgen -lposix4  -lgcc_s -lsec -lresolv -L/usr/local/switchkit/lib -lskapi -lskcapi
Undefined                       first referenced
symbol                             in file
int std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::compare(unsigned,unsigned,const char*,unsigned)const /export/10g/app/oracle/libocci.so
std::__RTTI__1nDstdJbad_alloc_ /export/10g/app/oracle/libocci.so
[Hint: static member std::__RTTI__1nDstdJbad_alloc_ must be defined in the program]

void*operator new[](unsigned)                       /export/10g/app/oracle/libocci.so
_ZN6oracle4occi8MetaDataD1Ev        OciQuery.o
_ZN6oracle4occi4DateD1Ev            OciQuery.o
_ZN6oracle4occi4DateC1Ev            OciQuery.o
std::exception::__vtbl          /export/10g/app/oracle/libocci.so
[Hint: try checking whether the first non-inlined, non-pure virtual function of class std::exception is defined]

std::__RTTI__1nDstdMlength_error_ /export/10g/app/oracle/libocci.so
[Hint: static member std::__RTTI__1nDstdMlength_error_ must be defined in the program]

std::__RTTI__1nDstdLlogic_error_ /export/10g/app/oracle/libocci.so
[Hint: static member std::__RTTI__1nDstdLlogic_error_ must be defined in the program]

void*__Crun::ex_get()            /export/10g/app/oracle/libocci.so
char*std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::replace(unsigned,unsigned,const char*,unsigned,unsigned,unsigned) /export/10g/app/oracle/libocci.so
std:ut_of_range::__vtbl       /export/10g/app/oracle/libocci.so
[Hint: try checking whether the first non-inlined, non-pure virtual function of class std:ut_of_range is defined]

bool __Crun::ex_skip()            /export/10g/app/oracle/libocci.so
std::logic_error::__vtbl        /export/10g/app/oracle/libocci.so
[Hint: try checking whether the first non-inlined, non-pure virtual function of class std::logic_error is defined]

std::logic_error::~logic_error()         /export/10g/app/oracle/libocci.so
void __Crun::register_exit_code(void(*)()extern"C" /export/10g/app/oracle/libocci.so
void __Crun::ex_chk_unexpected()  /export/10g/app/oracle/libocci.so
std::__RTTI__1nDstdMout_of_range_ /export/10g/app/oracle/libocci.so
[Hint: static member std::__RTTI__1nDstdMout_of_range_ must be defined in the program]


std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::__nullref /export/10g/app/oracle/libocci.so
[Hint: static member std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::__nullref must be defined in the program]

_ZN6oracle4occi4DateaSERKS1_        OciQuery.o
void operator delete(void*)                       /export/10g/app/oracle/libocci.so
__rwstd::except_msg_string::except_msg_string(unsigned,...) /export/10g/app/oracle/libocci.so
_ZN6oracle4occi12SQLExceptionD1Ev   OciConnection.o
__rwstd::__rwse_InvalidSizeParam /export/10g/app/oracle/libocci.so
[Hint: static member __rwstd::__rwse_InvalidSizeParam must be defined in the program]

void __Crun::pure_error()         /export/10g/app/oracle/libocci.so
void __Crun::ex_clean()           /export/10g/app/oracle/libocci.so
std::bad_alloc::__vtbl          /export/10g/app/oracle/libocci.so
[Hint: try checking whether the first non-inlined, non-pure virtual function of class std::bad_alloc is defined]

__rwstd::__rwse_ResultLenInvalid /export/10g/app/oracle/libocci.so
[Hint: static member __rwstd::__rwse_ResultLenInvalid must be defined in the program]

_ZNK6oracle4occi4Date7getDateERiRjS3_S3_S3_S3_ OciQuery.o
void __Crun::ex_rethrow()         /export/10g/app/oracle/libocci.so
void __Crun::ex_rethrow_q()       /export/10g/app/oracle/libocci.so
std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;&std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;:perator=(const std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;& /export/10g/app/oracle/libocci.so
void*__Crun::ex_alloc(unsigned)         /export/10g/app/oracle/libocci.so
std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;&std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::assign(const std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;&,unsigned,unsigned) /export/10g/app/oracle/libocci.so
std::length_error::~length_error()        /export/10g/app/oracle/libocci.so
_ZNK6oracle4occi8MetaData6getIntENS1_6AttrIdE OciQuery.o
void*operator new(unsigned)                       /export/10g/app/oracle/libocci.so
std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::basic_string(const char*,unsigned,const std::allocator<char>;& /export/10g/app/oracle/libocci.so
__rwstd::__rwse_UnexpectedNullPtr /export/10g/app/oracle/libocci.so
[Hint: static member __rwstd::__rwse_UnexpectedNullPtr must be defined in the program]

std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::basic_string(const char*,const std::allocator<char>;& /export/10g/app/oracle/libocci.so
std:ut_of_range::~out_of_range()        /export/10g/app/oracle/libocci.so
_ZN6oracle4occi11Environment17createEnvironmentENS1_4ModeEPvPFS3_S3_jEPFS3_S3_S3_jEPFvS3_S3_E OciConnection.o
void __Crun::ex_throw(void*,const __Crun::static_type_info*,void(*)(void*)) /export/10g/app/oracle/libocci.so
_ZN6oracle4occi11Environment20terminateEnvironmentEPS1_ OciConnection.o
_ZN6oracle4occi8MetaDataaSERKS1_    OciQuery.o
void operator delete[](void*)                       /export/10g/app/oracle/libocci.so
__rwstd::__rwse_StringIndexOutOfRange /export/10g/app/oracle/libocci.so
[Hint: static member __rwstd::__rwse_StringIndexOutOfRange must be defined in the program]

std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;&std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;:perator=(const char*) /export/10g/app/oracle/libocci.so
std::length_error::__vtbl       /export/10g/app/oracle/libocci.so
[Hint: try checking whether the first non-inlined, non-pure virtual function of class std::length_error is defined]

_ZNK6oracle4occi12SQLException10getMessageEv OciConnection.o
_ZNK6oracle4occi8MetaData9getStringENS1_6AttrIdE OciQuery.o
__rwstd::__string_ref<char,std::char_traits<char>;,std::allocator<char>; >;*std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::__getRep(unsigned,unsigned) /export/10g/app/oracle/libocci.so
std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;::basic_string(const std::basic_string<char,std::char_traits<char>;,std::allocator<char>; >;&,unsigned,unsigned,const std::allocator<char>;& /export/10g/app/oracle/libocci.so
ld: fatal: Symbol referencing errors. No output written to dbgw
make: *** [dbgw] Error 1

论坛徽章:
0
2 [报告]
发表于 2005-09-09 17:04 |只看该作者

OCCI 连接问题,SOS!!!

我也有这个问题!咋办呢?

论坛徽章:
0
3 [报告]
发表于 2005-09-09 19:36 |只看该作者

OCCI 连接问题,SOS!!!

-compat=4 这一句有问题。
occi要求支持stl,而sun studio 系列,在兼容SUNWspro 4 时,不支持stl.

解决方法有两个,去掉兼容模式,或者使用第三方的stl库。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP