Skip to main content
OWLchan
Associate III
May 5, 2023
Solved

how i can add my soucre file to TOUCH GFX ??

i am having a problem trying to add a source code to my project, even though CUBE IDE already added it but the source codes of TOUCH GFX are not receiving, i see people using Makefile to add it but i am having trouble towel when using it.

I would be very grateful if you could help me in this matter  


_legacyfs_online_stmicro_images_0693W00000bjTSgQAM.png
_legacyfs_online_stmicro_images_0693W00000bjTSlQAM.png

This topic has been closed for replies.
JTP1Best answer
Graduate II
May 8, 2023

No, you dont have to convert files. Just check that you have set new include folder to c and c++ compilers. You can see that more detailed in project properties - C/C++ build - settings and there check include paths for GCC and G++ compiler :thumbs_up:

4 replies

Graduate II
May 6, 2023

Hello. Are you sure you have set this ST_hardware/Inc- path also to C++ language ?

OWLchan
OWLchanAuthor
Associate III
May 8, 2023

did you mean convert it to a c++ file instead of a regular c ,do i need to convert both its source file and include file to c++ ?:kissing_face: :kissing_face: :kissing_face:

JTP1Best answer
Graduate II
May 8, 2023

No, you dont have to convert files. Just check that you have set new include folder to c and c++ compilers. You can see that more detailed in project properties - C/C++ build - settings and there check include paths for GCC and G++ compiler :thumbs_up:

OWLchan
OWLchanAuthor
Associate III
May 8, 2023

oh it worked, seems the path is missing from the G++ compiler i have filled in the path of the include file there. Thanks for this great help  


_legacyfs_online_stmicro_images_0693W00000bjZFsQAM.png