Arduino Forum

Forum 2005-2010 (read only) => Software => Troubleshooting => Topic started by: acid_june on Jun 28, 2010, 02:14 pm

Title: Please help me: error 22 WProgram.h detail inside!
Post by: acid_june on Jun 28, 2010, 02:14 pm
Hi everybody,

My name is June, I'm new in Arduino field. Could you please help me I have problem when I run simple program that is Blink from Arduino 0018 with Macbook Pro. The error code show 22: error WProgram.h: No such file or directory in red color area and show 22: error: WProgram.h: No such file or directory In function 'void setup()': In function 'void loop()':
in black area. I's looking like a program not found path I'm not sure.

Regards,
June
Title: Re: Please help me: error 22 WProgram.h detail inside!
Post by: GrooveFlotilla on Jun 28, 2010, 03:06 pm
Can you post your code, please?
My crystal ball is at the repair shop today.
Title: Re: Please help me: error 22 WProgram.h detail inside!
Post by: acid_june on Jun 28, 2010, 03:14 pm
Sir,

Thanks for respond. The code below it's a default code from Arduino. Just want to test board I bought it today from some shop at Thailand.

/*
 Blink

Turns on an LED on for one second, then off for one second, repeatedly.

The circuit:
* LED connected from digital pin 13 to ground.

* Note: On most Arduino boards, there is already an LED on the board
connected to pin 13, so you don't need any extra components for this example.


Created 1 June 2005
By David Cuartielles

http://arduino.cc/en/Tutorial/Blink

based on an orginal by H. Barragan for the Wiring i/o board

*/

int ledPin =  13;    // LED connected to digital pin 13

// The setup() method runs once, when the sketch starts

void setup()   {                
 // initialize the digital pin as an output:
 pinMode(ledPin, OUTPUT);    
}

// the loop() method runs over and over again,
// as long as the Arduino has power

void loop()                    
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}

I use USB to Serial to syn with my Macbook Pro.

Regards,
June
Title: Re: Please help me: error 22 WProgram.h detail inside!
Post by: AlphaZeta on Jun 29, 2010, 02:10 pm
Could you post the full error message? It looks like that you are using the canned version of the blink code so everything should work if the environment setup is correctly. I assume that you have installed all the required tools?
Title: Re: Please help me: error 22 WProgram.h detail inside!
Post by: acid_june on Jun 30, 2010, 12:21 pm
Thank you for every respond, I got it, The problems came from path of directory I forgot copy my board's libraries to main libraries folder.

Thanks & Regards,
~ i J u n e ~