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.

  • TI Thinks Resolved

Compiler/CCSTUDIO: header-files keep us from adhering to pre c++17.

Prodigy 10 points

Replies: 1

Views: 25

Part Number: CCSTUDIO

Tool/software: TI C/C++ Compiler

Good Afternoon!

We are having trouble at my company with c++ code produced in Code Composer Studio. In the header-file stdint.h a __has_include is present. "__has_include" is as I understand it a feature of c++17. When This code is later analyzed using an older version of QAC++ (or what is currently called) a syntax error is raised due to this "__has_include". Our version of QAC++ does not incorporate c++17 features.

Due to bureaucratic reasons our code should ideally adhere strictly to the c++03 standard and QAC++ test results are of importance. Is there a way to make CCS/C++ compiler and header-files adhere to c++03 standard or some ohter workaround this problem?

Best Regards

  • Magnus Almin
    Is there a way to make CCS/C++ compiler and header-files adhere to c++03 standard or some ohter workaround this problem?

    Unfortunately, no.

    I suppose you could consider modifying the standard header files.  However, I do not consider that to be a practical solution.  I suspect you see it the same way.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

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.