Forum Stats

  • 3,851,951 Users
  • 2,264,054 Discussions
  • 7,904,915 Comments

Discussions

compat=4 and #include<string>

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
This discussion has been closed.