Skip to main content
Visitor II
October 13, 2023
Question

What is the point of this UI element?

    This topic has been closed for replies.

    2 replies

    TDK
    October 13, 2023

    I realize this post is more a rant than a question seeking a solution, but the point of the element is to include the C++ compiler in the project. Files still need to be named appropriately for it to be treated as a C++ file. If that's not checked, and you have *.cpp files in your project, it won't know what to do with them.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    Semer CHERNI
    ST Employee
    October 23, 2023

    Hello @capnhyaku 

    First let me thank you for posting.

    The STM32CubeMX (the code generator) does not generate C++ code it only generate C code.

    However, like @TDK  have mentioned, the this check box is used to include C++ compiler in the project in case your project will contain C++ code.
    For example, if you are planning to use TouchGFX for graphics you need to check this box as TouchGFX will generate C++ code.

    BR,

    Semer.

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.