How can we get the IDE to build a C++ project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-14 3:42 AM
Hi,
my team has the intention of using the STM32H745IIK6 in one of our products.
We acquired a STM32H745i-disco board for developing the firmware, which has to be in C++.
The problem is: we can't get a the IDE to build a C++ project, as it always seems to be expecting plain C (not recognizing C++ symbols).
Can you send us a trivial sample project, configured to build C++ source files?
Our schedules are tight and we should start making the first builds very soon.
Many thanks,
Filipe Tavares
- Labels:
-
STM32CubeIDE
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-14 4:29 AM
Source files with C++ code should have one of these extensions
.cc
.cpp
.cxx
.C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-14 5:16 AM
As addon to valuable previous comment be aware project target language can be set on project creation thru dedicated wizard or on any STM32CubeIDE project relying on project contextual menu of Project explorer view. Some "Convert to C++" or "Convert to C" feature is available to you accordingly.​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-14 5:45 AM
There was a recent discussion "How do I compile C++ on STM32CubeIDE?" in the forum. See my comments there. I dont know how to add a permanent link, so you have to use the search function, sorry.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-14 5:54 AM
I think @KnarfB​ is referring to this post:
https://community.st.com/s/question/0D50X0000BcREG3SQO/how-do-i-compile-c-on-stm32cubeide
