在AIX上链接OCCI程序时出错 [英] Getting error while linking an OCCI program on AIX

查看:121
本文介绍了在AIX上链接OCCI程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个示例程序,用于使用OCCI连接C ++中的Oracle。

I have written one sample program for connecting Oracle in C++ using OCCI..

这给了我运行时错误。

ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode,void*,void*(*)(void*,unsigned long),void*(*)(void*,void*,unsigned long),void(*)(void*,void*))
ld: 0711-317 ERROR: Undefined symbol: .oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)

我给出了以下命令来执行它

I have given the following command to execute it

g++ -o occi amrtest.cpp -Wall -I/oradata/oracle/product/10.2.0/db_1/rdbms/public -L/oradata/oracle/product/10.2.0/db_1/lib -lclntsh  -lnnz10 -locci -lclntsh  -lnnz10 -locci10

您能帮我解决此错误吗?

Can u help me in getting this error resolved ?

推荐答案

我既不是AIX专家,也不是Oracle专家,但是您的 LD_LIBRARY_PATH (或AIX中的等效项)应包含$ ORACLE_HOME / lib。检查此论坛条目:

I am not an AIX nor Oracle expert, but seems that your LD_LIBRARY_PATH (or equivalent in AIX) should include $ORACLE_HOME/lib. Check this forum entries:

http://forums.oracle.com/forums/thread.jspa?messageID=2172885
http://forums.oracle.com/forums/thread.jspa?threadID=579418&tstart=0
http://www.dbforums.com/oracle/1007236-occi-aix-oracle-9-a.html

HTH。

这篇关于在AIX上链接OCCI程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆