Hi guys. I am new to arm and keil and I'm working on LPC1768 and keil5. I've wrote a header and source file and want to add it to my project. This is my steps:
- Source group -> add existing -> add MyHeader.c file
- target -> options -> C/C++ -> include paths -> add my include path
- write #include "MyHeader.h" at the top of main.c file
but still when I build the file i get error "Undefined symbol Function (referred from MyHeader.o)"
so pls help me with this. thank you
Andy Neil said:Do you have any experience with any other microcontroller(s) and/or any other IDE(s)
yes I have worked with atmel studio and AVR MCUs for a time.
You are right. I have forgotten to add another library which is used in my source code.
So you would get very much the same message from Atmel Studio!
eg, https://www.avrfreaks.net/forum/undefined-reference-error-0