Page 1 of 1

Possible to use C++ instead of C?

Posted: Tue Dec 08, 2009 11:22 pm
by Lee Davies
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".

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

Posted: Wed Dec 09, 2009 9:24 am
by vuurrobin
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.

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

Posted: Wed Dec 09, 2009 5:51 pm
by WinterMute
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.