我在vc6做了如下设置:
设置在菜单工程-》设置-》c/c++的分类选择preprocessor,再在附加包含路径添加D:\oracle\oci\include
设置在菜单工程-》设置-》link的对象/库模块里加入oci.lib
编译时候还是报链接错误:
main.obj : error LNK2001: unresolved external symbol "int __cdecl oclose(struct cda_def *)" (?oclose@@YAHPAUcda_def@@@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl ofen(struct cda_def *,int)" (?ofen@@YAHPAUcda_def@@H@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl oexec(struct cda_def *)" (?oexec@@YAHPAUcda_def@@@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl odefin(struct cda_def *,int,unsigned char *,int,int,int,short *,unsigned char *,int,int,unsigned short *,unsigned short *)" (?odefin@@YAHPAUcda_def@@HPAEHHHPAF1HHPAG3@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl osql3(struct cda_def *,unsigned char *,int)" (?osql3@@YAHPAUcda_def@@PAEH@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl ologof(struct cda_def *)" (?ologof@@YAHPAUcda_def@@@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl oopen(struct cda_def *,struct cda_def *,unsigned char *,int,int,unsigned char *,int)" (?oopen@@YAHPAUcda_def@@0PAEHH1H@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl olon(struct cda_def *,unsigned char *,int,unsigned char *,int,int)" (?olon@@YAHPAUcda_def@@PAEH1HH@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl oerhms(struct cda_def *,short,unsigned char *,int)" (?oerhms@@YAHPAUcda_def@@FPAEH@Z)
第一次在vc上做oci的编程,哪位知道的能帮个忙
设置在菜单工程-》设置-》c/c++的分类选择preprocessor,再在附加包含路径添加D:\oracle\oci\include
设置在菜单工程-》设置-》link的对象/库模块里加入oci.lib
编译时候还是报链接错误:
main.obj : error LNK2001: unresolved external symbol "int __cdecl oclose(struct cda_def *)" (?oclose@@YAHPAUcda_def@@@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl ofen(struct cda_def *,int)" (?ofen@@YAHPAUcda_def@@H@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl oexec(struct cda_def *)" (?oexec@@YAHPAUcda_def@@@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl odefin(struct cda_def *,int,unsigned char *,int,int,int,short *,unsigned char *,int,int,unsigned short *,unsigned short *)" (?odefin@@YAHPAUcda_def@@HPAEHHHPAF1HHPAG3@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl osql3(struct cda_def *,unsigned char *,int)" (?osql3@@YAHPAUcda_def@@PAEH@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl ologof(struct cda_def *)" (?ologof@@YAHPAUcda_def@@@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl oopen(struct cda_def *,struct cda_def *,unsigned char *,int,int,unsigned char *,int)" (?oopen@@YAHPAUcda_def@@0PAEHH1H@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl olon(struct cda_def *,unsigned char *,int,unsigned char *,int,int)" (?olon@@YAHPAUcda_def@@PAEH1HH@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl oerhms(struct cda_def *,short,unsigned char *,int)" (?oerhms@@YAHPAUcda_def@@FPAEH@Z)
第一次在vc上做oci的编程,哪位知道的能帮个忙
解决方案 »
- <加急>高手请进:监听起不来了,错误tns-12541、tns-12560、tns-00511
- 【学习贴】Oracle总结+++
- 求救,SQL 语句过滤重复记录并把被过滤后的字段和
- oracle 集群ARC 是否可以不用归档日志
- 如何有效利用数据字典,文章转载
- 关于SQL developer访问oracle
- 不好意思,再问一个菜鸟问题
- 请教一个SQL 语句
- Ora-01571:重做版本8.1.6.0.0 与oracle8.0.5.0.0不兼容,是怎么回事?谢谢..急
- oracle里用sql语句select查询出现“无法在本地管理的表空间创建临时段”是什么原因?
- 如何让oracle中的日期增加一天
- oracle developer 开发,急急!!
oclose这些都是oracle7时代的产物。
iihero,你好,如果我还要用这些oracle上个世纪的产物,我还要加什么才能用?
这个应该是必须的吧。
我机器上安装了oracle9i的服务器版。