Question
Converting main.c to .cpp in generated TouchGFX project caused errors
Hi, I am quite new here so sorry for this simple question.
I have STM32 F746G discovery board and I generated project through TouchGFX designer and imported it to Cube IDE, but it generated main.c file.
The project is C++ project, but when I try to rename main.c to main.cpp it will generate errors during compilation. I have no idea why I am getting these errors. Thanks in advance!
I have no idea why it is working with .c and not with .cpp
undefined reference to MX_TouchGFX_Init()
undefined reference to MX_TouchGFX_Process()

