Re: Problems with occi on windows

From: Alexander Kuznetsov <Alexander.Kuznetsov_at_marshmc.com>
Date: 28 Aug 2002 11:35:34 -0700
Message-ID: <ac5bc7c1.0208281035.22378d4c_at_posting.google.com>


Hi Justin,
thank you for answering
jocave_at_yahoo.com (Justin Cave) wrote in message news:<233b7a65.0208280103.499ebc2e_at_posting.google.com>...
> Alexander.Kuznetsov_at_marshmc.com (Alexander Kuznetsov) wrote in message news:<ac5bc7c1.0208270803.69590be9_at_posting.google.com>...
> > Hi forum,
> > I'm having problems trying to run an OCCI example, occidml.cpp on
> > Visual C++ 6.0 sp5
>
> Are you sure that you did everything the previous post in this thread
> indicated? I looks like you may have forgotten to include
> oraocci9.lib.
>
> Justin

oraocci9.lib _is_ included, I can see it in the settings also other modules using OCCI don't raise linker errors, like this:



  Connection *conn;
  Statement *stmt;

  void insertBind (int c1, string c2)
  {
    string sqlStmt = "INSERT INTO author_tab VALUES (:x, :y)";     stmt=conn->createStatement (sqlStmt);     try{

    stmt->setInt (1, c1);
    stmt->setString (2, c2);
    stmt->executeUpdate ();

    cout << "insert - Success" << endl;
    }catch(SQLException ex)
    {
     cout<<"Exception thrown for insertBind"<<endl;
     cout<<"Error number: "<<  ex.getErrorCode() << endl;
     cout<<ex.getMessage() << endl;

    }

    conn->terminateStatement (stmt);
  }



won't raise any linker errors
thank you,
Alexander Received on Wed Aug 28 2002 - 20:35:34 CEST

Original text of this message