Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Arduino IDE 1.6.7 can not found include files

Open odilonafonso opened this issue 10 years ago • 9 comments

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!

odilonafonso avatar Jan 19 '16 12:01 odilonafonso

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

odilonafonso avatar Jan 19 '16 12:01 odilonafonso

There is no problem with 1.6.7 , please clean all data and reinstall it

asetyde avatar Jan 19 '16 13:01 asetyde

Hi asetyde, Can you compile the .ino attached, please ? testfun.zip

odilonafonso avatar Jan 19 '16 13:01 odilonafonso

i’m not sure you can do this … (order of functions but it can be )

screen shot 2016-01-19 at 14 26 27

asetyde avatar Jan 19 '16 13:01 asetyde

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 )

screen shot 2016-01-19 at 14 32 29

asetyde avatar Jan 19 '16 13:01 asetyde

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 avatar Jan 19 '16 13:01 odilonafonso

@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.

itsjustvenky avatar Jan 20 '16 04:01 itsjustvenky

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);
}

odilonafonso avatar Jan 20 '16 14:01 odilonafonso

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

odilonafonso avatar Jan 20 '16 15:01 odilonafonso