I am using Oracle 12c and VS 2012 Express. I tried this simple code but it fails:
using namespace oracle::occi;
using namespace std;
int main( int argc, const char* argv )
//create environment and connection
Environment* env = Environment::createEnvironment();
Connection* conn = env->createConnection( "xxx", "xxx", "localhost" );
std::cout << "Environment and Connection created" << std::endl;
The createEnvironment method fails and createConnection raises an exception.
Does anyone experience the same problem ?
You may be using the default OCCI libraries that are built with VS2010. Please check this:
You need to use the libraries that are compatible with VS2012. See the above link for their location.