why this error ocurred?

hi,

when i compile this codes:

#define timeout  3000
#define trig_pin  14
void setup() {       
}
void loop() {
}

or this :

#define timeout  3000
const int trig_pin= 14;
void setup() {       
}
void loop() {
}

this error ocurred:

C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\variants\standard C:\Users\Safdari\AppData\Local\Temp\build4069285878092024285.tmp\sketch_jan11a.cpp -o C:\Users\Safdari\AppData\Local\Temp\build4069285878092024285.tmp\sketch_jan11a.cpp.o 
In file included from sketch_jan11a.ino:3:
C:\Program Files\Arduino\hardware\arduino\cores\arduino/Arduino.h:109: error: expected ',' or '...' before numeric constant
In file included from C:\Program Files\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:28,
                 from C:\Program Files\Arduino\hardware\arduino\cores\arduino/Arduino.h:193,
                 from sketch_jan11a.ino:3:
C:\Program Files\Arduino\hardware\arduino\cores\arduino/Stream.h:57: error: expected ',' or '...' before numeric constant
In file included from sketch_jan11a.ino:3:
C:\Program Files\Arduino\hardware\arduino\cores\arduino/Arduino.h:200: error: expected ',' or '...' before numeric constant

but this code compiled without any error!

const int trig_pin= 14;
#define timeout  3000
void setup() {       
}
void loop() {
}

my Arduino IDE version is "1.0.5"

best regards

Hello and welcome,

Use the latest Arduino IDE

guix: Hello and welcome,

Use the latest Arduino IDE

Thanks a lot.