2021-11-02 06:37 AM
Hello,
when i need to include cpp headers in main.c to use classes and cpp functions, I usually convert project to c++, rename main.c to main.cpp and everything works good.
Now I started project with TouchGFX. The only way to compile project without any errors is using main.c (not main.cpp). Else there are some errors, maybe connected with architecture of TouchGFX (i found main.cpp file ProjectName\TouchGFX\simulator\main.cpp).
2021-11-02 07:23 AM
Hi,
Your project needs to be in C++ to use TouchGFX. The error message "undefined reference to "MX_TouchGFX_Process()" indicates that your project is C.
/Romain
2021-11-02 07:54 AM
My project already converted to C++
2021-11-03 03:55 AM
Could you share your project ? Are you using an RTOS ? Could you check the name of the entry function (it should be TouchGFX_Task) ?
/Romain