Possible to use C++ instead of C?

support for the ARM toolchain
Post Reply
Lee Davies
Posts: 1
Joined: Tue Dec 08, 2009 11:14 pm

Possible to use C++ instead of C?

Post by Lee Davies » Tue Dec 08, 2009 11:22 pm

This may seem like a stupid question, but I'm wondering if it's possible to use C++ to program for the DS instead of C?

I've started teaching myself C++ and wouldn't want to confuse myself further!

I've tried having a quick play around but the compiler still wants to use "main.c" instead of "main.cpp".

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: Possible to use C++ instead of C?

Post by vuurrobin » Wed Dec 09, 2009 9:24 am

yes you can use c++ to program for the ds. changing the extension from .c to .cpp should be everything you need to do.

what do you mean with the compiler still wants to use main.c.

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

Re: Possible to use C++ instead of C?

Post by WinterMute » Wed Dec 09, 2009 5:51 pm

if you renamed main.c to main.cpp you'll need to clean before rebuilding since the dependencies will still be looking for .c otherwise.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests