Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

compat=4 and #include<string>

807575Jun 28 2000
I am trying to build a project that uses string and wstring out of #include <string>, but because I am using Orbix 3 corba middleware I am having uses compatibility mode compat=4. This gives me the following error:

"/opt/SUNWspro/SC5.0/include/CC/./new", line 32: Error: The prior declaration for operator new(unsigned) has no exception specification.
"/opt/SUNWspro/SC5.0/include/CC/./new", line 34: Error: The prior declaration for operator delete(void *) has no exception specification.
"/opt/SUNWspro/SC5.0/include/CC/./new", line 36: Error: The prior declaration for operator new[](unsigned) has no exception specification.
"/opt/SUNWspro/SC5.0/include/CC/./new", line 32: Error: The prior declaration for operator delete[](unsigned) has no exception specification.

I was expecting to have to use new.h for compat=4, but <string> includes <rw/string_ref> which includes <memory> which includes <new>. Does this mean that I cannot use <string>?

My compile options are:
-compat=4 -library=rwtools7 -features=%none,bool,namespace,except,mutable

Thanks in advance,
Damian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2000
Added on Jun 28 2000
0 comments
107 views