Skip to main content
BParh.1
Senior III
October 14, 2021
Solved

Which C++ std compiler version used in TouchGFX Designer and MSVC simulator?

  • October 14, 2021
  • 9 replies
  • 2371 views

I have questions:

  1. Which C++ std used when building code in TouchGFX Designer? c++11, c++14, c++17?
  2. Which C++ std used when building code in MSVC simulator? c++11, c++14, c++17?
  3. Which c++ std ST used to verify and release TouchGFX?
  4. Can user change and modify the std? Any risk/ side effects to consider?

Best answer by LouisB

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,
 

9 replies

CTapp.1
Senior III
February 11, 2024

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.

All posts are made in a personal capacity. MISRA C++ Chair, MISRA C WG Member, Director The MISRA Consortium Limited (TMCL)
LouisBBest answer
ST Employee
February 15, 2024

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,
 

Louis BOUDOST Software Engineer | TouchGFX
unsigned_char_array
Lead III
December 4, 2025

@LouisB wrote:

Concerning the version of C++, TouchGFX only uses C++98 language features.  


Update: in TouchGFX 4.26.0 C++17 is default. https://support.touchgfx.com/docs/miscellaneous/known-issues#touchgfx-4-26-0

I have used C++17 before this version without any issue.

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
CTapp.1
Senior III
February 16, 2024

Thanks, that's good to hear :)

All posts are made in a personal capacity. MISRA C++ Chair, MISRA C WG Member, Director The MISRA Consortium Limited (TMCL)
ST Employee
February 22, 2024

No problem :), I'll mark it as best answer.

Louis BOUDOST Software Engineer | TouchGFX