I am working with the arduino in eclipse. I can get projects to compile and load but when I use serial and try to build I get the following error.
Building target: ProjectTwo.elf Invoking: AVR C++ Linker avr-g++ --cref -s -Os -o"ProjectTwo.elf" ./main.o -lArduinoCore -lm -Wl,-Map,ProjectTwo.map,--cref -L"D:\MyDocs\CS421\ArduinoCore\Release" -L"D:\MyDocs\CS421\ArduinoCore" -mmcu=atmega2560 D:\MyDocs\CS421\ArduinoCore\Release\libArduinoCore.a(HardwareSerial.o):(.data+0x14): undefined reference to `Print::write(unsigned char)' make: *** [ProjectTwo.elf] Error 1
I have tried changing stuff in the print.h, print.cpp, and hardwareserial.h and nothing seems to fix this. Does anybody know why this is happening or how to fix it?