Skip to content

preprocessor fails on #include "ESP8266wifi.h" (for external ESP8266 addon) #68

Closed
arduino/ctags
#4
@ladyada

Description

@ladyada

there's something about this header file that crashes the preprocessor, probably indicates some more general purpose bug. reproduce by:

  • add http://arduino.esp8266.com/stable/package_esp8266com_index.json to board manager prefs
  • use board manager to install ESP8266 support
  • try to compile this sketch
#include "ESP8266WiFi.h"
void setup() {}
void loop() { hello(); }
void hello(void) {}
  • will fail due to not having auto-generated prototype for hello()
  • now put #include "ESP8266WiFi.h" on last line, recompile
  • works now because while it does crash on the #include, its after the prototypes are made (?)

Also mentioned @ esp8266/Arduino#1066

Metadata

Metadata

Assignees

Labels

help wantedAssistance from the community is especially welcometopic: preprocessorRelated to sketch preprocessingtype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions