cancel
Showing results for 
Search instead for 
Did you mean: 

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

BParh.1
Senior III

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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 BOUDO
ST Software Engineer | TouchGFX

View solution in original post

8 REPLIES 8
CTapp.1
Senior III

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.

MISRA C++ Chair
MISRA C WG Member

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,

Louis BOUDO
ST Software Engineer | TouchGFX

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.

MISRA C++ Chair
MISRA C WG Member

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 BOUDO
ST Software Engineer | TouchGFX
CTapp.1
Senior III

Thanks, that's good to hear :)

MISRA C++ Chair
MISRA C WG Member

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,

Louis BOUDO
ST Software Engineer | TouchGFX
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 ;)

MISRA C++ Chair
MISRA C WG Member
LouisB
ST Employee

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

Louis BOUDO
ST Software Engineer | TouchGFX