Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino IDE 1.6.7 can not found include files #1466

Closed
odilonafonso opened this issue Jan 19, 2016 · 9 comments
Closed

Arduino IDE 1.6.7 can not found include files #1466

odilonafonso opened this issue Jan 19, 2016 · 9 comments

Comments

@odilonafonso
Copy link

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
Copy link
Author

Well, I tried again, something happened - returned to work.
I am seriously considering to downgrade to 1.6.5 .....

Anyone else experienced this:
arduino/arduino-builder#88 (comment)

@asetyde
Copy link

asetyde commented Jan 19, 2016 via email

@odilonafonso
Copy link
Author

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

@asetyde
Copy link

asetyde commented Jan 19, 2016

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
Copy link

asetyde commented Jan 19, 2016

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

@odilonafonso
Copy link
Author

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)

@itsjustvenky
Copy link

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

@odilonafonso
Copy link
Author

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 odilonafonso reopened this Jan 20, 2016
@odilonafonso
Copy link
Author

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.
arduino/arduino-builder#68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants