Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unresolved externals compiling app using MS VC++ and OCI

e5c61e6a-728a-452a-9f28-3422f0627d34Jun 1 2015 — edited Jun 1 2015

I'm tryin to compile simple program:

#include <oci.h>

#include <stdio.h>

int main (int argc, char *argv[])

{

  OCIInitialize ((ub4)OCI_DEFAULT, NULL, NULL, NULL, NULL);

  printf("ok\n");

  return 0;

}

That gives link error:

error LNK2019: unresolved external symbol _OCIInitialize referenced in function _main

I have linked oci.lib from oracle home directory.

I have Oracle 12.1.0 Enterprise and MS Visual C++ 2010 Express.
OS: Windows 8.1

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 29 2015
Added on Jun 1 2015
0 comments
493 views