cancel
Showing results for 
Search instead for 
Did you mean: 

adding second immage, SW4STM32 can't resolved it

rzapp
Associate II

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?

3 REPLIES 3
Martin KJELDSEN
Chief III

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
Associate II

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
Chief III

Glad you found the issue :)

/Martin