Results 1 to 3 of 3

Thread: oci

  1. #1
    Join Date
    Sep 2004
    Posts
    8

    Unhappy Unanswered: oci

    i am trying to compile an oci program but getting the following error

    Linking...
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIDescriptorAlloc
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIHandleAlloc
    cdemorid.obj : error LNK2001: unresolved external symbol _OCILogon
    cdemorid.obj : error LNK2001: unresolved external symbol "int __cdecl init_handles(struct OCIEnv * *,struct OCIError * *,int)" (?init_handles@@YAHPAPAUOCIEnv@@PAPAUOCIError@@H@Z )
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIEnvInit
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIInitialize
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIHandleFree
    cdemorid.obj : error LNK2001: unresolved external symbol _OCILogoff
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIErrorGet
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIAttrGet
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIStmtFetch
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIDefineByPos
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIStmtExecute
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIAttrSet
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIStmtPrepare
    cdemorid.obj : error LNK2001: unresolved external symbol _OCIBindByPos
    Debug/cdemorid.exe : fatal error LNK1120: 16 unresolved externals
    Error executing link.exe.

    cdemorid.exe - 17 error(s), 1 warning(s)

  2. #2
    Join Date
    Jan 2004
    Posts
    17
    Did you configured in your compiler the oracle libs?

    The libs and headers are in "c:\oracle\ora92\oci\" i dont remember for shure,
    but they are somewhere there in a folder called "oci".

  3. #3
    Join Date
    Dec 2004
    Posts
    1

    oci link.exe

    need oci.lib in project settings link- Object/Library modules in Microsoft Visual studio.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •