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.

MSPM0G1105: How to make CCS v20 use g++ for .cpp files and gcc for .c files?

Part Number: MSPM0G1105

Hi,
customer uses CCS v20.4 and try to compile and link a project using the GNU ARM toolchain (arm-none-eabi-gcc/g++).
Does CCS 20.4  support the use of the GNU ARM toolchain for C++ projects (including automatic selection of the C++ linker), or are there known restrictions or workarounds for the integration of arm-none-eabi-g++?

It gives the impression that either the g++ or the gcc compiler can be executed, but not in parallel. Their expectation is that the C and C++ compiler can be configured/executed in parallel, similar to the Eclipse version.

Regards, Holger

  • Hi Holger,

    I will look into this with the team get back to you.

    Best,

    Owen

  • Hi Owen,
    can you response?

    Regards, Holger

  • Hi Holger,

    After speaking with the software team, there should not be any restrictions or workarounds for the integration of arm-none-eabi-g++.

    CCS supports the use of the GNU Arm toolchain, which I believe is included in the CCS download.

    I looked through the compiler and linker flags between an empty C project and an empty C++ project and there weren't any flags that would prevent a project from include both C and C++ files. I used the empty_cpp SDK example and added a C file to the project, and I was able to build without a problem.

    I would suggest starting with the empty_cpp example and build the project from there.

    Best,

    Owen