cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32Cube c++ project for TrueStudio

energet666
Associate
Posted on February 06, 2016 at 14:52

Stm32Cube c++ project for TrueStudio

2 REPLIES 2
Nesrine M_O
Lead II
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
Associate
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.