Operator new in VxWorks cross compiler

Kevin.Hughes@icl.com Kevin.Hughes@icl.com
Tue Sep 7 05:47:00 GMT 1999

I recently built a gcc2.95.1 cross compiler under the cygwin environment for
an x86 vxworks system. All appeared to go well (eventually - I only compile
the gcc portion) and the compiler appears to work but the c++ part object to
all overloads of new. I get the following error...

 `operator new' takes type `size_t' as first parameter

but the definition of the offending function is 

void* operator new( size_t, void* p ) { return p; }

The code compiles clean using the cygwin native gcc2.95 compiler produced by
Mumit Khan. Any sugestions as to how to proceed would be much appreciated.


More information about the Gcc-bugs mailing list