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.

Command-line error: invalid option: c++03

I am using configuration below, why do I get this error on CCS6 when I set the C++ dialect to C++03 mode?



Below is the error

>> Compilation failure Command-line error: invalid option: c++03 1 catastrophic error detected in this compilation. Compilation terminated. gmake: *** [base64.obj] Error 1 Building file: ../clock.cpp Invoking: MSP430 Compiler "/opt/ti/ccsv6/tools/compiler/msp430_4.3.3/bin/cl430" -vmspx --abi=eabi --code_model=large --data_model=large -O2 --opt_for_speed=0 --include_path="/opt/ti/ccsv6/ccs_base/msp430/include" --include_path="/work/c1202-firmware" --include_path="/opt/ti/ccsv6/tools/compiler/msp430_4.3.3/include" --include_path="/work/c1202-firmware/driverlib" -g --c++03 --relaxed_ansi --define=EDBUG=1 --define=__MSP430F5335__ --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --printf_support=minimal --preproc_with_compile --preproc_dependency="clock.pp" "../clock.cpp" Command-line error: invalid option: c++03 1 catastrophic error detected in this compilation. Compilation terminated. gmake: *** [clock.obj] Error 1 Command-line error: invalid option: c++03 1 catastrophic error detected in this compilation. Compilation terminated. gmake: *** [common.obj] Error 1

  • Thank you for bringing this to our attention.  I filed SDSCM00050535 in the SDOWP system to have this addressed.  Feel free to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George

  • Thank you, but actually I do not believe that that option is needed.  The strict C++03 is the default option.

    Per compiler MSP430 Compiler Users Guide 5.16

    ISO C++03 (--c++03, default for C++ files)