Skip to main content
manto.1
Associate III
November 18, 2022
Solved

How to include a library into Model.cpp so that it will work also with TouchGFX simulator?

  • November 18, 2022
  • 3 replies
  • 1879 views

I get the following error when trying to include a .h file into Model.cpp

0693W00000WIoAPQA1.png

This topic has been closed for replies.
Best answer by manto.1

I found a solution. I added my guiData.h file under TouchGFX include and on top of Model.cpp

I included like this:

#include <gui/model/guiData.h>

0693W00000WJ0nxQAD.png

3 replies

MM..1
Super User
November 18, 2022

where you place this h file ???

manto.1
manto.1AuthorBest answer
Associate III
November 21, 2022

I found a solution. I added my guiData.h file under TouchGFX include and on top of Model.cpp

I included like this:

#include <gui/model/guiData.h>

0693W00000WJ0nxQAD.png

MTora.1
Associate III
January 11, 2023

hi dears

I have a problem in simulator when I include some library and when I extern some prototypes in Model.hpp and screen1view.ccp.

0693W00000Y7zE9QAJ.pngI have to use #ifndef SIMULATOR to solve this problem. If not when I try to use touchGFX simulator, I face some error inform:

0693W00000Y7zFCQAZ.png 

Are there better way to solve the problem?