Arduino IDE 1.6.7 can not found include files
Yesterday, after installing the 1.6.7 release of the Arduino IDE, I could run for a while. For this, I went to the installation directory and directly executed the "arduino" file. After however, run the shell "install.sh", to generate a desktop shortcut, the compiler no longer find the include files - "ESP8266WiFi.h" and others. Can anyone tell me what I did wrong? What did the install.sh shell may have changed so that things no longer work? After I run it, I got: Adding desktop shortcut, menu item and file associations for Arduino IDE... done!
Well, I tried again, something happened - returned to work. I am seriously considering to downgrade to 1.6.5 .....
Anyone else experienced this: https://github.com/arduino/arduino-builder/issues/88#issuecomment-172774931
There is no problem with 1.6.7 , please clean all data and reinstall it
Hi asetyde, Can you compile the .ino attached, please ? testfun.zip
i’m not sure you can do this … (order of functions but it can be )

i haven't this problem because i use c old style common write :
ok go (but this is not place for code syntax use esp8266 forum next time )

Ok, thanks.. But the problem is not with ESP8266. Arduino IDE 1.6.5 do not have this issue...
functions can be placed in the desired order (as it should be)
@odilonafonso Things have changed recently. So if you have function and it needs to be declared at the top.
void test();
and then you can refer it any where in the code, else the called function should be on top of calling function.
Hi itsjustvenky, Try this:
#include <ESP8266WiFi.h>
#define LED 2
void test1(){
pinMode(LED, OUTPUT);
test2(LED);
test3(LED, LOW);
}
void test2(int led){
digitalWrite(led, HIGH);
delay(500);
}
bool test3(int led, int what){
digitalWrite(led, what);
delay(500);
return true;
}
void setup() {
// put your setup code here, to run once:
test1();
}
void loop() {
// put your main code here, to run repeatedly:
test2(LED);
test3(LED, LOW);
}
And try this:
#include <ESP8266WiFi.h>
#define LED 2
void test2(int);
bool test3(int, int);
void test1(){
pinMode(LED, OUTPUT);
test2(LED);
test3(LED, LOW);
}
void test2(int led){
digitalWrite(led, HIGH);
delay(500);
}
bool test3(int led, int what){
digitalWrite(led, what);
delay(500);
return true;
}
void setup() {
// put your setup code here, to run once:
test1();
}
void loop() {
// put your main code here, to run repeatedly:
test2(LED);
test3(LED, LOW);
}
The issue is with the pre-processor... The "men" are working to solution. https://github.com/arduino/arduino-builder/issues/68