Forum Stats

  • 3,767,820 Users
  • 2,252,720 Discussions
  • 7,874,337 Comments

Discussions

Unresolved externals compiling app using MS VC++ and OCI

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

This discussion has been closed.