Problem with new

support for the ARM toolchain
Post Reply
solano
Posts: 9
Joined: Fri Oct 15, 2010 8:45 am

Problem with new

Post by solano » Thu Oct 21, 2010 9:58 am

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++

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Problem with new

Post by WinterMute » Thu Oct 21, 2010 12:00 pm

You need to compile C++ code to get new. With the default templates that simply means renaming the source file from .c to .cpp
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests