我去oracle的论坛上看了下,类似问题的回答如下 :
Make sure that you check the 'makefile ' provided by oracle to setup Visual studio 6.0 settings. For Visual studion 7.0 you may also need to update oraocci9.lib/dll.
Your developer studion must have the following settings as provided in the make file:
:occimake
cl -GX -DWIN32COMMON -I. -I%ORACLE_HOME%\oci\include -I. -D_DLL -D_MT %1.cpp /link /LIBPATH:%ORACLE_HOME%\oci\lib\msvc oci.lib msvcrt.lib msvcprt.lib oraocci9.lib /nod:libc
goto end
Follow these steps:
1. ADD the following PREPROCESSOR DIRECTIVES
A) -> WIN32COMMON
B) -> _DLL
C) -> _MT
2. Add "/nodefaultlib:libcd " in 'project options ' under the 'Link ' tab.
3. Make sure that you have the following libraries in in "Object/library modules " under the "Link " tab.
4. Add "libcd " in "ignore libraries " under the "Link " tab; this may also be populated by the "/nodefaultlib:libcd " setting.
Hope it helps~
想来这里问问众兄弟,有遇到这种情况吗?
------解决方案--------------------
有源代码吗
------解决方案--------------------
你的语句!