(Using Cortex M4) and Keil uVision 4.20.03.0
I get error :
.\Armboard\Armboard.axf: Error: L6218E: Undefined symbol TimingDelay_Decrement (referred from stm32f4xx_it.o).
whenever I build target. In the file there is an #include "main.h" where the function is clearly defined, however I still get this error.
Any help?
This isn't a compiler error. This is a linker error. So have you configured your project to to compile and link that other source file? So the linker will see the *.o file that contains the generated code for that function?
The project clearly links the source file. main.h is in the file tree generated by the linker.
I think you'll find that the function was merely declared - not defined.
ie, the header contained just the prototype for the function...
c-faq.com/.../decldef.html
http://bit.ly/Sg3oRM
Hi actually i was also facing the same issue. In my case what happened is iI kept the driver source files and inlcude files in the other folder thats why linker was not able to link them. Then i cpoied every single file into the project filder and also i gave path of that folder by going into the option folder and then c/c++ and then include path option.
No, that's not what happened. The linker does not care where source files are.