Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> ?? OTL attempt, almost compiled...

?? OTL attempt, almost compiled...

From: Ron Vissers <rvissers_at_qtiworld._N0_SP4M_.com>
Date: 6 May 1999 10:28:12 -0600
Message-ID: <3731b50c.0@news.qgraph.com>


Hi,

First, I'm new to tinkering with g++ and OTL, the Oracle Template Library by a Mr. S. Kuchin.

I've encountered the following error/situation and was hoping someone could buy me a clue as to what needs fixing. Thanks, in advance, for any suggestions. :)

Ron

/users/rvissers/bomac/test # /opt/gcc/bin/g++ test1.cxx
collect2: ld returned 1 exit status
/usr/ccs/bin/ld: Unsatisfied symbols:

   opinit (code)
   oerhms (code)
   obndra (code)

   oopen (code)
   oparse (code)
   obndrv (code)
   ofen (code)
   ologof (code)
   odefin (code)
   odescr (code)

   ocom (code)
   olog (code)
   oclose (code)
   oexn (code)

I'm including my test code for reference.

#include <iostream.h>
#include <stdio.h>
#include <otl7.h>


otl_connect db;

void select() {

char f1[256];

        otl_stream oraclestream (256
// buffer size

                                ,"select * from v$database"
//select sql statement

                                ,db);
// connect object
                                

        cout << endl;                 

	while (!oraclestream.eof()){
		oraclestream>>f1;
		cout<<"f1="<<f1<<endl;
	}
	cout << endl;

}

//---------------------------------------------

int main() {

        otl_connect::otl_initialize();
// init OCI environment
        

	try {
		db.rlogon("rvissers/rvissers");					

// connect to oracle
                
		select();
	}
	
	catch(otl_exception& p) {						

// intercept OTL exceptions
cerr<<p.msg<<endl; if (p.stm_text) cerr<<p.stm_text<<endl;
// print offending sql
} db.logoff(); return 0;

} Received on Thu May 06 1999 - 11:28:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US