Anirudha Sarangi

C++ List.h Issue

Discussion created by Anirudha Sarangi on Mar 7, 2007
Latest reply on Mar 12, 2007 by Anirudha Sarangi
Hi,
I am working on porting an old application to CW tools. I faced some issues. To get more ideas on it,
I created a CW stationary C++ project for 5235EVB. In the already existing main.cpp, I included list.h. On compilation of this main.cpp, I got lots of errors. One typical error looked like:
Error  : illegal overloading 'operator new(unsigned long)'
was declared as 'extern "C" void * (unsigned long)'
now declared as 'void * (unsigned long)throw(std::bad_alloc) '
(included from :
memory:150
list:124
main.cpp:8)
new line 118 ME void* operator new(_CSTD::size_t size) throw(_STD::bad_alloc);
 
Can anyone tell me how do I resolve this?
 
regards
Tapu

Outcomes