cancel
Showing results for 
Search instead for 
Did you mean: 

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

manto.1
Senior

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

0693W00000WIoAPQA1.png

1 ACCEPTED SOLUTION

Accepted Solutions
manto.1
Senior

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

View solution in original post

3 REPLIES 3
MM..1
Chief II

where you place this h file ???

manto.1
Senior

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

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?