Skip to main content
Visitor II
April 20, 2024
Solved

Undefined reference to a function

  • April 20, 2024
  • 1 reply
  • 1877 views

I am learning stm32f407ve, And I am facing problem in building the project.

jarvis402_0-1713600458162.png

GPIO_Init( ) and GPIO_ReadFromInputPin( ) both functions are defined in the same files and declared in same files but when i build the project . I get Error for GPIO_ReadFromInputPin( ) and not for GPIO_Init( ) , how is this possible ?

jarvis402_1-1713600667076.png

 

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    Missing some source code somewhere. 

    Include files define interfaces and macros, they typically don't provide the code the Linker needs for closure. 

    What library is this. Lacking broader context. 

    1 reply

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    April 20, 2024

    Missing some source code somewhere. 

    Include files define interfaces and macros, they typically don't provide the code the Linker needs for closure. 

    What library is this. Lacking broader context. 

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..