Page 1 of 1

Problem with new

Posted: Thu Oct 21, 2010 9:58 am
by solano
I'm using notepad++ to write my code and then I compile it through command prompt with make( Widnows 7 Ultimate ).When I try to use the operator new it says new undeclared.
And when I try to include the header new.h it says file not found.Is there a way to fix that without having to use visual studio or devc++ or any other development environment.

If I need and environment I have
Microsoft Visual Studio 2010 Express
wxDevC++

Re: Problem with new

Posted: Thu Oct 21, 2010 12:00 pm
by WinterMute
You need to compile C++ code to get new. With the default templates that simply means renaming the source file from .c to .cpp