Extending the UDPApp example

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:

  1. Add forward declaration to the udpapp.h in the WiShield library folder: void test();
  2. Add definition to the udpapp.c in the UDPApp example folder: void test() { }
  3. Include header file in the UDPApp sketch: #include "udpapp.h"
  4. Add a call to test() in the sketch's loop() function
  5. Close and restart Arduino IDE so that the files are recompiled. I didn't see any residual object files.
  6. 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

What does your whole sketch look like? Specifically, what are you including in the sketch?