locked
operator DEBUG_NEW' is not a recognized operator or type error occur.. RRS feed

  • Question

  • Hi..
    I m using visual studio 2005 and i m trying to migrate evc4.0 mfc applicaiton to vs2005 vc++

    I m getting  the errors in new.h header file like:

    C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\new.h(80) : error C2833: 'operator DEBUG_NEW' is not a recognized operator or type

    1>C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\new.h(80) : error C2059: syntax error : 'newline'

    1>C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\new.h(81) : error C2143: syntax error : missing ';' before '{'

    1>C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\new.h(81) : error C2447: '{' : missing function header (old-style formal list?)

    that errors are from this lines:

    inline

    void *__cdecl operator new(size_t, void *_P)

    {

    return (_P); }
    Plz anyone can help me hoe to remove this errors ...

    Plz help me..
    Thanks
    Kalgi

    Saturday, August 1, 2009 1:20 PM

Answers

  • Check your project. It seems to have a line somewhere that says
    #define new DEBUG_NEW
    or something to that effect. Remove it.
    Alex Feinman. MVP .NET Compact Framework
    Sunday, August 2, 2009 10:41 PM

All replies

  • Check your project. It seems to have a line somewhere that says
    #define new DEBUG_NEW
    or something to that effect. Remove it.
    Alex Feinman. MVP .NET Compact Framework
    Sunday, August 2, 2009 10:41 PM
  • Thanks Alex...

    I have done it...
    Monday, August 3, 2009 8:20 AM