Hi,
I've been trying to extend the UDPApp example by adding a simple function to udpapp.c that can be accessed by the UDPApp sketch. For simplicity's sake, I'll call the function test(). These are the steps I took:
- Add forward declaration to the udpapp.h in the WiShield library folder: void test();
- Add definition to the udpapp.c in the UDPApp example folder: void test() { }
- Include header file in the UDPApp sketch: #include "udpapp.h"
- Add a call to test() in the sketch's loop() function
- Close and restart Arduino IDE so that the files are recompiled. I didn't see any residual object files.
- Try to compile UDPApp sketch
These steps always yield the following error:
o: In function loop': F:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7740950383387186384.tmp/UDPApp.cpp:53: undefined reference to
test(void)'
Thanks for your help,
Sean