Skip to main content
Graduate
March 20, 2025
Solved

Type 'Button' could not be resolved

  • March 20, 2025
  • 3 replies
  • 508 views

@MM..1  @Tesla DeLorean 

Hi! I am getting this error and not being able to find out why. I've looked online and haven't found an answer either.

I have some #defines in my header file and for some reason I it is like my source file can't see these definitions. I've done just the same for all my other files and all of them work, however this one gives me: Type 'Button' could not be resolved.

I checked if there is a type, but everything seems to be correct. Any chance someone could help me?

 

Thank you!!

 

(I am using STM CUBE IDE)

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Hello,

    Use search utility to find were these defines are defined and check if they were defined before you have used it.

    Check also it they were undefined somewhere in the code after their definitions.

    3 replies

    Super User
    March 20, 2025

    You'll need to give more details on your code, system & development environment:

    How to write your question to maximize your chances to find a solution

     

    Is it TouchGFX?

    Super User
    March 20, 2025

    If it can't be resolved, it isn't defined before you use it. Check that it is defined and the order of include files such that it's defined before use.

    mƎALLEmAnswer
    Technical Moderator
    March 20, 2025

    Hello,

    Use search utility to find were these defines are defined and check if they were defined before you have used it.

    Check also it they were undefined somewhere in the code after their definitions.