Skip to main content
energet666
Visitor II
February 6, 2016
Question

Stm32Cube c++ project for TrueStudio

  • February 6, 2016
  • 2 replies
  • 695 views
Posted on February 06, 2016 at 14:52

Stm32Cube c++ project for TrueStudio

    This topic has been closed for replies.

    2 replies

    Nesrine M_O
    Associate
    February 8, 2016
    Posted on February 08, 2016 at 09:31

    Hi halezov.stanislav,

    Text description is empty,there is only the title of your post witch cannot give us a clear idea about the problem you are facing or the information you are looking.

    Could you explain the purpose of your post?

    -Syrine-

    aris
    Visitor II
    February 15, 2016
    Posted on February 15, 2016 at 16:09

    I think you must go the generated project, under the Truestudio directory, open the .project file and

    under the tag <natures> it already has

    <nature>org.eclipse.cdt.core.cnature</nature>.

    You just need to add

    <nature>org.eclipse.cdt.core.ccnature</nature> 

    and reopen your project.

    Under settings there will be the C++ compiler settings enabled.

    The symbols and the directories for including files will be the default ones.

    You just have to copy them from the C compiler settings.

    In order to add c++ files and headers to your project you should be careful and remember

    to add

    #ifdef __cplusplus

     extern ''C'' {

    #endif

    at the top and

    #ifdef __cplusplus

    }

    #endif

    at the bottom of the files, where needed.

    Hope this helps.