Created Sat, 22 Sep 2012 15:58:59 +0000 by pRabbit
Sat, 22 Sep 2012 15:58:59 +0000
I have what I thought was a fairly simple piece of code that runs fine in Arduino. The code gathers some data from the analog pins and sends it back to the computer over serial. In the Arduino IDE it runs great and requires no added libraries. I've use Arduino0023 and Aruino 1.0.1 and both work just fine.
I want to run this code on my ChipKit Uno32. After not recognizing the Serial command by itself (no arguments), which I commented out, the program will compile. However, it won't link. I get a pile of errors on the .cpp file:
undefined reference to 'makeWord(unsigned short)'
I tried importing the SoftwareSerial.h library, but that didn't change anything. Any ideas what is going on here? With no libraries to add, I have no idea what to do, or even how to debug this further.
There really isn't much in the offending sub-routine: a few conversions to word (which sound like the error) and a few calls to the Serial library (Serial.available, Serial.read and Serial.flush).
Any ideas would be greatly appreciated.
Sat, 22 Sep 2012 19:13:36 +0000
If you post the code, we'd be happy to help you figure out what's going on. Without that, it's hard to know what to suggest.