Skip to main content
rzapp
Associate II
October 16, 2019
Question

adding second immage, SW4STM32 can't resolved it

  • October 16, 2019
  • 3 replies
  • 1041 views

after adding a second image image2 to Screen1, the SW4STM32 has a compliation error

Symbol 'image2' could not be resolved

If I delete the image2 every thing works

can you help me?

This topic has been closed for replies.

3 replies

Martin KJELDSEN
Principal III
October 17, 2019

I'm not compleeeetely sure what you're asking since simply adding a new variable shouldn't cause this. Sounds to me like you think you added image2 and you're trying to reference it, but it's not there.

One explanation could be that you're using 4.12.3 where you MUST generate code manually, and you're trying to reference image2 in user-code space (gui/) but the symbol, even though the image is on the canvas, is not generated to source code in generated/gui_generated.

/Martin

rzapp
rzappAuthor
Associate II
October 17, 2019

I'm using touchGFX designer 4.10.0 with SW4STM32.

Every reference was there, the instance was created in the hpp file like image1. I guess it was an eclipse issue. After disabling the option "Index unused headers as C++ file" in the C/C++ Genereral / Indexer, the issue didn't appear any more.

Still Thank you for your help!

/rosario

Martin KJELDSEN
Principal III
October 17, 2019

Glad you found the issue :)

/Martin