when i hit verify on the ide i get a strange error with one particular program. i have seen this error elsewhere on the boards but the fixes suggested havnt worked for me. here is the error:
C:\Users\Owner\AppData\Local\Temp\build6619.tmp\core.a(wiring_serial.c.o): In function `__vector_18':
C:\Users\Owner\Desktop\arduino-0015\hardware\cores\arduino/wiring_serial.c:112: multiple definition of `__vector_18'
C:\Users\Owner\AppData\Local\Temp\build6619.tmp\core.a(HardwareSerial.cpp.o):C:\Users\Owner\Desktop\arduino-0015\hardware\cores\arduino/HardwareSerial.cpp:95: first defined here
Couldn't determine program size: C:\Users\Owner\Desktop\arduino-0015\hardware/tools/avr/bin/avr-size: 'C:\Users\Owner\AppData\Local\Temp\build6619.tmp\sketch_090519c.hex': No such file
a few people were saying in other threads that it could likely be an error in the program stopping the program from compiling and therefore causing the unknown size error at the bottom, but i dont think this is the cause. ill include the code anyway
int pin1 = 2;
int serialIn;
void setup ()
{
Serial.begin(9600);
pinMode(pin1,OUTPUT);
}
void loop ()
{
serialIn = serialRead();
if (serialIn = 49)
{
digitalWrite (pin1,HIGH);
}
}
I am running Windows Vista Intel Core 2 duo 1.66 GHz. any help would be greatly appreciated
EDIT: problem solved, it was a syntax error (shame on me). Thanks for the quick replies and help