Content originally posted in LPCWare by Chris1seto on Wed Jul 13 21:54:20 MST 2011
In the LPC examples, I see several folders not added whe na new C project is created. Among these is the drivers folder, which holds the code to interact with GPIO which is what I need to do in my project/.
I am using the CMSIS in my project, 2.00.
So, I add the drivers folder to my project root, then under the quickstart panel/quick settings -> Include paths I add the path.
When I build, I get several of the following errors for each of the references to functions defined in the gpio .h/.c files. (I also add gpio.h in the C file generating the errors with "#include "gpio.h"")
Quote:
undefined reference to `GPIOSetDir'
It seems as though the .h file is found, but it can't find the functions defined in it.
Any ideas?