Problem compiling C++ program using olog function

Ajeet Singh nona_ajeet@yahoo.com
Wed Jul 23 12:28:00 GMT 2003


Dear Sir/Madam,
     I am trying to create a program which establish a
connection with oracle database using olog function
but whenever i m compiling it is returning me an error
following are the details 
/bin/sh libtool --silent --mode=compile g++ 
-Iext/cppext/ -I/opt/php-4.3.0/ext/
cppext/ -DPHP_ATOM_INC -I/opt/php-4.3.0/include
-I/opt/php-4.3.0/main -I/opt/php
-4.3.0 -I/usr/local/apache2/include
-I/opt/php-4.3.0/Zend -I/opt/oracle/product/
9.2.0/rdbms/public
-I/opt/oracle/product/9.2.0/rdbms/demo
-I/opt/oracle/product/
9.2.0/plsql/public -I/opt/php-4.3.0/ext/xml/expat 
-I/opt/php-4.3.0/TSRM  -g -O2
  -prefer-pic -c /opt/php-4.3.0/ext/cppext/class.cpp
-o ext/cppext/class.lo
/opt/oracle/product/9.2.0/rdbms/demo/ocikpr.h: In
member function `void
   MyPHPClass::setString(std::basic_string<char,
std::char_traits<char>,
   std::allocator<char> >)':
/opt/oracle/product/9.2.0/rdbms/demo/ocikpr.h:90: too
many arguments to
   function `sword olog()'
/opt/php-4.3.0/ext/cppext/class.cpp:22: at this point
in file
make: *** [ext/cppext/class.lo] Error 1

MyPHPClass::setString definition below :

void MyPHPClass::setString(const string s)
{
   Lda_Def lda;
   ub4 hda[512];
   text *username = (text *) "sys";
   text *password = (text *) "manager";
   itsString = s; // itsString declared as private
member in Class declaration.
   if (olog(&lda, (ub1 *)hda, (text *)"sys", -1, (text
*)"manager", -1,(text *) 0, -1, (ub4 *)OCI_LM_DEF))
   {
     itsString = "Unable to connect as ";
     return ;
}
		
}

Please try to give me the solution as soon as
possible, i m stuck with my work here.

Regards,
Ajeet Singh Arora

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the Gcc-bugs mailing list