Note that there are some explanatory texts on larger screens.

plurals
  1. POerror linking to oci libraries from vc++
    primarykey
    data
    text
    <p>Im using the OCI libraries from oracle 9i(personal edtn) for connecting to the database from my c program.(im using visual c++ 2005) ive included all lib files from oci and included them in the additional dependency also, but when i compile the following code i get linker errors. </p> <pre><code>#include "stdafx.h" #include "Form1.h" #include &lt;occi.h&gt; #include&lt;oratypes.h&gt; using namespace ovci; using namespace oracle; [STAThreadAttribute] int main(array&lt;System::String ^&gt; ^args) { oracle::occi::Environment* environment; oracle::occi::Connection *con; oracle::occi::Statement* stmt; oracle::occi::ResultSet* res; environment = oracle::occi::Environment::createEnvironment(oracle::occi::Environment::DEFAULT); con = environment-&gt;createConnection("scott", "tiger", ""); stmt = con-&gt;createStatement("select * from emp2"); res = stmt-&gt;executeQuery(); stmt-&gt;closeResultSet(res); con-&gt;terminateStatement(stmt); environment-&gt;terminateConnection(con); Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); Application::Run(gcnew Form1()); return 0; } </code></pre> <p>the errors i get are,</p> <pre><code>ovci.obj : error LNK2028: unresolved token (0A000016) "public: static class oracle::occi::Environment * __clrcall oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__clrcall*)(void *,unsigned int),void * (__clrcall*)(void *,void *,unsigned int),void (__clrcall*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSMPAV123@W4Mode@123@PAXP6MPAX1I@ZP6MPAX11I@ZP6MX11@Z@Z) referenced in function "int __clrcall main(cli::array&lt;class System::String ^ &gt;^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z) ovci.obj : error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __clrcall oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__clrcall*)(void *,unsigned int),void * (__clrcall*)(void *,void *,unsigned int),void (__clrcall*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSMPAV123@W4Mode@123@PAXP6MPAX1I@ZP6MPAX11I@ZP6MX11@Z@Z) referenced in function "int __clrcall main(cli::array&lt;class System::String ^ &gt;^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload