I am trying to compile a C project for STM32 with Eclipse (OLIMEX)
I got the following error
C:\OlimexODS\examples\STM32-E407_blink_FLASH_DENEME/main.c:156: undefined reference to SYSCFG_ETH_MediaInterfaceConfig'
(a function in stm32f4xx_syscfg.c)
the header file is included in main.c #include "stm32f4xx_syscfg.h"
the source file where above function(SYSCFG_ETH_MediaInterfaceConfig) is declared stm32f4xx_syscfg.c file is included in lib\src folder
why am I getting this error ?
note : I got 10 of the same error only I posted just one here - al the same error message with different functions - my OS is winXP
mehmet karakaya wrote on Sat, 10 November 2012 13:03
hello forum,
I am trying to compile a C project for STM32 with Eclipse (OLIMEX)
I got the following error
C:\OlimexODS\examples\STM32-E407_blink_FLASH_DENEME/main.c:156: undefined reference to SYSCFG_ETH_MediaInterfaceConfig'
(a function in stm32f4xx_syscfg.c)
the header file is included in main.c #include "stm32f4xx_syscfg.h"
the source file where above function(SYSCFG_ETH_MediaInterfaceConfig) is declared stm32f4xx_syscfg.c file is included in lib\src folder
why am I getting this error ?
note : I got 10 of the same error only I posted just one here - al the same error message with different functions - my OS is winXP
That is an error message from the linker. The symbols from stm32f4xx_syscfg.o are not linked into your executable.
Does stm32f4xx_syscfg.c belong to your main project or is it an external library?