Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> ?? OTL attempt, almost compiled...
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)
ologof (code) odefin (code) odescr (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");
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;
![]() |
![]() |