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++
Problem with new
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Problem with new
You need to compile C++ code to get new. With the default templates that simply means renaming the source file from .c to .cpp
Who is online
Users browsing this forum: No registered users and 0 guests