2022-01-25 07:07 PM
TouchGFX Designer 4.17.0.
In model.hpp, I added a static inline variable for my application.
1) Run simulation compile gives error:
error: inline variables are only available with -std=c++1z or -std=gnu++1z [-Werror]
How can I add the option for this compile support?
2) How would I modify "Post Generate Command" to include the VS language option "-std=c++17":
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Please advise.
2022-01-26 07:01 AM
Hi,
For question 1, in gcc you can set it in the app.mk file (in TouchGFX/config/gcc folder).
For the second question I have no clue :grinning_face_with_sweat:. I'll try to find someone who can answer it.
/Romain
2022-01-26 07:17 AM
Apparently it works fine on a colleague's pc (no over writting) with TouchGFX 4.18.1. Could you give it a try with that version ? Could you share more steps to try to reproduce it ?
/Romain
2022-01-27 08:42 PM
I briefly tested 4.18.1, as you mentioned, this version will not overwrite the vcxproj "c++17" setting set via MSVS.
However, the after migration of my 4.17.0 project to 4.18.1, the run simulation button in 4.18.1 is not enabled. (Generate code button is available.)