This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430G2533: MSP430 C++

Part Number: MSP430G2533


Tool/software: Code Composer Studio

Hi all, is there a recommended/easy/default way to create C++ projects in CCS for MSP430? Right now I'm create a "CCS project" with a default main.c then vicariously change main file it to main.cpp which seems to be enough to enable the c++ compiler. But this seems a bit back door. Or I've created a C++ project but this seems to be a generic Eclipse C++/MingGW tool chain.

I'm just using C++ as "a better C"...ie,  static (non-dynamic/no-heap) classes, pass by reference or anything else that doesn't require an STL.

thank you,

Scott

  • Hi Scott.

    I pretty much do the same thing (rename the file extension) to have it recognized as a C++ file. The default behavior is to use a *.c extension and have the compiler treat it as a standard *.c file. There isn't an option to have it create a *.cpp extension by default. I suppose you can try playing with projectspecs if you wish to create a project template that does.

    Thanks

    ki