当gcc更新时,occi链接错误

时间:2015-07-12 01:56:36

标签: c++ gcc oracle11g ld

当我将gcc 4.1更新为gcc 5.1时

我想使用occi11.2连接到oracle11g 并安装

oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm

oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm

oracle-instantclient11.2-odbc-11.2.0.4.0-1.x86_64.rpm

链接错误是:

/usr/bin/ld: Dwarf Error: found dwarf version '4', this reader only handles version 2 information.

output / MaintainEventList.o:在函数_ZL20EventCommonStoreToDBP13st_SINGLELISTPN6oracle4occi10ConnectionE': MaintainEventList.cpp:(.text+0x36a4): undefined reference to _ ZNK6oracle4occi12SQLException10getMessageB5cxx11Ev' MaintainEventList.cpp :(。text + 0x3edb):未定义引用`_ZNK6oracle4occi12SQLException10getMessageB5cxx11Ev' collect2:错误:ld返回1退出状态 make:*** [bin / depositor]错误1

如何处理?

0 个答案:

没有答案