Skip to main content
OWLchan
Associate III
May 5, 2023 12:00 PM UTC
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 5:08 AM UTC

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 6:09 PM UTC

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

OWLchan
OWLchanAuthor
Associate III
May 8, 2023 1:22 AM UTC

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 5:08 AM UTC

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 5:45 AM UTC

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