I asked this question before, and I am ashamed to ask this question again, but I have encountered the"Error Compiling" message when I try to compile my program. When I asked this question last time, I was asked to add
// WCharacter.h prototypes
inline boolean isAlphaNumeric(int c) attribute((always_inline));
to the program, or to put an other deceleration in the front. But this time these two methods don't work. Can anyone help me? A million thanks.
P.S. This is the code I am trying to compile:
#include "pitches.h" #include <IRremote.h>
int RECV_PIN = 8;
int ledPin = 7;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{ Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(ledPin, OUTPUT);
}
void loop() {
if (irrecv.decode(&results)) { Serial.println(results.value, DEC);
}
if(results.value == 150996993){
tone(6, NOTE_C4, 4);
}
if(results.value == 151029889){
tone(6, NOTE_D4, 4);
}
if(results.value == 151013441){
tone(6, NOTE_E4, 4);
}
irrecv.resume(); // Receive the next value
}
No, an error looks like this (copied arbitrarily from another thread):
C:\Documents and Settings\Albert\Desktop\arduino-1.0.1\libraries\PS2Keyboard/PS2Keyboard.h:168: error: expected ',' or ';' before 'typedef'
C:\Documents and Settings\Albert\Desktop\arduino-1.0.1\libraries\PS2Keyboard/PS2Keyboard.h:173: error: expected constructor, destructor, or type conversion before ';' token
C:\Documents and Settings\Albert\Desktop\arduino-1.0.1\libraries\PS2Keyboard/PS2Keyboard.h:176: error: 'PS2Keymap_t' does not name a type
C:\Documents and Settings\Albert\Desktop\arduino-1.0.1\libraries\PS2Keyboard/PS2Keyboard.h:177: error: 'PS2Keymap_t' does not name a type
C:\Documents and Settings\Albert\Desktop\arduino-1.0.1\libraries\PS2Keyboard/PS2Keyboard.h:197: error: expected ',' or '...' before '&' token
C:\Documents and Settings\Albert\Desktop\arduino-1.0.1\libraries\PS2Keyboard/PS2Keyboard.h:197: error: ISO C++ forbids declaration of 'PS2Keymap_t' with no type
Lcd_screen___keyboard.cpp: In function 'void setup()':
Lcd_screen___keyboard:172: error: no matching function for call to 'PS2Keyboard::begin(const int&, const int&)'
C:\Documents and Settings\Albert\Desktop\arduino-1.0.1\libraries\PS2Keyboard/PS2Keyboard.h:197: note: candidates are: static void PS2Keyboard::begin(uint8_t, uint8_t, int)
Lcd_screen___keyboard.cpp: In function 'void loop()':
Lcd_screen___keyboard:186: error: 'LcdStringln' was not declared in this scope
Lcd_screen___keyboard:208: error: invalid conversion from 'char' to 'char*'
Lcd_screen___keyboard:208: error: initializing argument 1 of 'void LcdString(char*)'
core.a(Tone.cpp.o): In function __vector_13': C:\Users\Habib\Downloads\arduino-1.0.1-windows (2)\arduino-1.0.1\hardware\arduino\cores\arduino/Tone.cpp:523: multiple definition of __vector_13'
arduinoirremote\IRremote.cpp.o:D:\Tech\Arduino\libraries\arduinoirremote/IRremote.cpp:311: first defined here
c:/users/habib/downloads/arduino-1.0.1-windows (2)/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions