Results 1 to 2 of 2

Thread: OTL help...

  1. #1
    Join Date
    Aug 2004
    Location
    Iceland
    Posts
    37

    Unanswered: OTL help...

    Does anyone here know OTL well ???

    I try to compile to little test program that looks like this:
    Code:
    #include <iostream>
    using namespace std;
    #include <stdio.h>
    #define OTL_ORA9I // Compile OTL 4.0/OCI9i
    #define OTL_UNICODE // Enable Unicode OTL for OCI9i
    #include <otlv4.h> // include the OTL 4.0 header file
    otl_connect db; // connect object
    
    int main()
    {
          otl_connect::otl_initialize(); // initialize OCI environment
          try
          {
             db.rlogon("test/test"); // connect to Oracle
          }
          catch(otl_exception& p)
          { // intercept OTL exceptions
               cerr<<p.msg<<endl; // print out error message
               cerr<<p.stm_text<<endl; // print out SQL that caused the error
               cerr<<p.var_info<<endl; // print out the variable that caused the error
           }
    
          db.logoff(); // disconnect from Oracle
          return 0;
    
    }
    With this commandline:
    Code:
    g++ -I/u01/app/oracle/product/9.2.0/rdbms/demo -I/u01/app/oracle/product/9.2.0/rdbms/public -I/u01/app/oracle/product/9.2.0/network/public -I/pkms/test/bk prufa.cpp -L/u01/app/oracle/product/9.2.0/lib -lclntsh
    And this is my error:
    Code:
    ld: 0711-317 ERROR: Undefined symbol: .OCIInitialize
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerDetach
    ld: 0711-317 ERROR: Undefined symbol: .OCIHandleFree
    ld: 0711-317 ERROR: Undefined symbol: .OCISessionEnd
    ld: 0711-317 ERROR: Undefined symbol: .OCIErrorGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIEnvInit
    ld: 0711-317 ERROR: Undefined symbol: .OCIHandleAlloc
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerAttach
    ld: 0711-317 ERROR: Undefined symbol: .OCIAttrSet
    ld: 0711-317 ERROR: Undefined symbol: .OCISessionBegin
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit status
    Thank you for your time

  2. #2
    Join Date
    Aug 2004
    Location
    Iceland
    Posts
    37
    Has no one used this nor have any idea ????

Posting Permissions

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