Skip to content

possible preprocessor issue when checking for included files in Arduino 1.6.6 #4109

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

Closed
soundanalogous opened this issue Nov 8, 2015 · 2 comments
Assignees
Labels
Type: Duplicate Another item already exists for this topic
Milestone

Comments

@soundanalogous
Copy link

In Arduino 1.6.5, this worked (and still works fine):

#if !defined ethernet_h && !defined _YUN_CLIENT_H_
#error "you must uncomment the includes for your board configuration. See OPTIONS A and B in the NETWORK CONFIGURATION SECTION"
#endif

Full file for greater context.

However since updating to Arduino 1.6.6 the error is always thrown. It seems to be that ethernet_h is no longer found by the preprocessor even though Ethernet.h is included. The Ethernet library is still included and works as expected. Maybe it's loaded later even though it is included above this code. It could also just be sloppy coding on my part that is picked up by stricter checking in the updated arduino-builder.

@soundanalogous soundanalogous changed the title possible preprocessor error when checking for included files possible preprocessor error when checking for included files in Arduino 1.6.6 Nov 8, 2015
@soundanalogous soundanalogous changed the title possible preprocessor error when checking for included files in Arduino 1.6.6 possible preprocessor issue when checking for included files in Arduino 1.6.6 Nov 8, 2015
@matthijskooijman
Copy link
Collaborator

I think this is essentially the same issue as arduino/arduino-builder#33 (though that talks about a specific USBCON define, but the issue is really more generic). I'll add a comment to that issue soon to highlight the generic issue.

@ffissore
Copy link
Contributor

Also arduino/arduino-builder#51 is related. These are already fixed or getting fixed. Please keep an eye on arduino/arduino-builder#33

@ffissore ffissore added the Type: Duplicate Another item already exists for this topic label Nov 11, 2015
@ffissore ffissore added this to the Release 1.6.7 milestone Nov 11, 2015
@ffissore ffissore self-assigned this Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

3 participants