This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Operator new in VxWorks cross compiler


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.


Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]