Home » Developer & Programmer » Precompilers, OCI & OCCI » Could not open include file <string>
Could not open include file <string> [message #248263] Thu, 28 June 2007 08:34 Go to next message
shsuri
Messages: 2
Registered: June 2007
Junior Member
Hi
I am getting the following error when compile my C++ program on Solaris 2.6. Can anyone please help!!!
Thanks - SS

bash$ /dev_tools/SUNWspro/SC4.2/bin/CC demo.cpp -I. -I$ORACLE_HOME/rdbms/demo -I$ORACLE_HOME/rdbms/public -I$ORACLE_HOME/plsql/public -I$ORACLE_HOME/network/public -I$ORACLE_HOME/lib -I$ORACLE_HOME/rdbms/lib -DBZ_NO_NAMESPACES -L/usr/lib -L/usr/ccs/lib -lc -laio -lposix4 -lkstat -lm -lthread -lnhost9 -lnus9 -lntcp9 -locci -lclntsh -o demo
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 98: Error: Could not open include file <string>.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 102: Error: Could not open include file <vector>.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 107: Error: Could not open include file <list>.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 114: Error: Type name expected instead of "namespace".
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 339: Error: The type "void" is incomplete.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 339: Error: There is no matching ")".
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 339: Error: std is not defined.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 339: Error: "," expected instead of "<".
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: Multiple declaration for getVector.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: The type "void" is incomplete.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: There is no matching ")".
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: std is not defined.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: A declaration does not specify a tag or an identifier.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: Use ";" to terminate declarations.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: A declaration was expected instead of "<".
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: Use ";" to terminate declarations.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: A declaration was expected instead of ">".
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 340: Error: Type name expected instead of "vect".
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 341: Error: Multiple declaration for getVector.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 341: Error: The type "void" is incomplete.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 341: Error: There is no matching ")".
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 341: Error: std is not defined.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 341: Error: A declaration does not specify a tag or an identifier.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 341: Error: Use ";" to terminate declarations.
"/export/home/oracle/orahome/rdbms/demo/occiCommon.h", line 341: Error: A declaration was expected instead of "<".
Compilation aborted, too many messages.
Re: Could not open include file <string> [message #251411 is a reply to message #248263] Fri, 13 July 2007 08:45 Go to previous message
kaloskagatos
Messages: 1
Registered: July 2007
Junior Member
Hi,

I had an error like this when I forgot a colon like:

void MyClass:myMethod(){}

instead of MyClass::myMethod(){}

You may have a look at this.
Previous Topic: thread blocked by operating on clob col?
Next Topic: How do I call OCIAttrGet from C#?
Goto Forum:
  


Current Time: Thu Dec 08 10:38:45 CST 2016

Total time taken to generate the page: 0.08223 seconds