Which C++ std compiler version used in TouchGFX Designer and MSVC simulator?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-13 5:20 PM
I have questions:
- Which C++ std used when building code in TouchGFX Designer? c++11, c++14, c++17?
- Which C++ std used when building code in MSVC simulator? c++11, c++14, c++17?
- Which c++ std ST used to verify and release TouchGFX?
- Can user change and modify the std? Any risk/ side effects to consider?
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-15 2:16 AM - last edited on ‎2024-07-18 2:13 AM by Mohammad MORADI ESFAHANIASL
Hello @CTapp.1 ,
Concerning the version of C++, TouchGFX only uses C++98 language features. Therefore, compiling the project using newer language versions should be safe.
I hope that answers your question.
Regards,
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-11 3:16 AM
Did you ever find out which versions are supported?
My generated STM32Cube project uses C++14, but I would like to use C++17.
The project builds without errors using C++17.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-14 12:23 AM
Hello,
There's no standard library used in TouchGFX, but you can enable it in your Toolchain (STM32CubeIDE or Keil ...) project properties for your project's code.
Regards,
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-14 12:45 AM
Hi Louis,
Thanks, but the question was about which version of the C++ language (as standardised in ISO 14882) the TouchGFX code was written against.
It's unlikely to matter (as long as a "modern" version is used - C++14 and later), but there are some subtle changes in behaviour that may get in the way if they are not considered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-15 2:16 AM - last edited on ‎2024-07-18 2:13 AM by Mohammad MORADI ESFAHANIASL
Hello @CTapp.1 ,
Concerning the version of C++, TouchGFX only uses C++98 language features. Therefore, compiling the project using newer language versions should be safe.
I hope that answers your question.
Regards,
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-16 2:54 PM
Thanks, that's good to hear :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-20 2:32 AM
Hi CTapp.1,
You are welcome, don't hesitate if you need additional information or help.
I also invite you to select the best answer, so the community can find the answer easily.
Regards,
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-20 8:27 AM
I also invite you to select the best answer, so the community can find the answer easily.
Unfortunately I can't, as I didn't start this topic ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-22 1:07 AM
No problem :), I'll mark it as best answer.
ST Software Developer | TouchGFX
