cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined reference to a function

jarvis402
Associate

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

1 REPLY 1

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
Up vote any posts that you find helpful, it shows what's working..