2020-02-14 03: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
2020-02-14 04:29 AM
Source files with C++ code should have one of these extensions
.cc
.cpp
.cxx
.C
2020-02-14 05: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.
2020-02-14 05: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
2020-02-14 05:54 AM
I think @KnarfB is referring to this post:
https://community.st.com/s/question/0D50X0000BcREG3SQO/how-do-i-compile-c-on-stm32cubeide