Deviot icon indicating copy to clipboard operation
Deviot copied to clipboard

is this normal compile ?

Open tablatronix opened this issue 8 years ago • 2 comments

dev version

I put a warning in a .h file, and noticed it outputs twice does the precompiler run twice on .h files?

Compiling .pioenvs\esp32doit-devkit-v1\src\OnDemandConfigPortal.ino.o
In file included from C:/Users/user/documents/projects/arduino/sketches/libraries/WiFiManager/examples/OnDemandConfigPortal/OnDemandConfigPortal.ino:1:0:
C:/Users/user/documents/projects/arduino/sketches/libraries/WiFiManager/WiFiManager.h:38:10: warning: #warning "WEBSERVER not implemented in espressif/esp32, see readme notes" [-Wcpp]
#warning "WEBSERVER not implemented in espressif/esp32, see readme notes"
^
Compiling .pioenvs\esp32doit-devkit-v1\libe17\WiFiManager\WiFiManager.o
In file included from C:\Users\user\documents\projects\arduino\sketches\libraries\WiFiManager\WiFiManager.cpp:14:0:
C:\Users\user\documents\projects\arduino\sketches\libraries\WiFiManager\WiFiManager.h:38:10: warning: #warning "WEBSERVER not implemented in espressif/esp32, see readme notes" [-Wcpp]
#warning "WEBSERVER not implemented in espressif/esp32, see readme notes"
^
Archiving .pioenvs\esp32doit-devkit-v1\libe17\libWiFiManager.a
Linking .pioenvs\esp32doit-devkit-v1\firmware.elf

tablatronix avatar Feb 20 '18 19:02 tablatronix

I noted the first time I used the WiFiManager, I have not had time to verify it but, seems like the warning will be displayed for each #include to the .h file

You can see the first call is made in the OnDemandConfigPoral.ino

C:/Users/user/documents/projects/arduino/sketches/libraries/WiFiManager/examples/OnDemandConfigPortal/OnDemandConfigPortal.ino:1:0:

And the second one in the WiFiManager.cpp

C:\Users\user\documents\projects\arduino\sketches\libraries\WiFiManager\WiFiManager.cpp:14:0:

Seems normal to me, does Arduino IDE display the same?

gepd avatar Feb 20 '18 19:02 gepd

Ill check arduino I added a ifdef to .cpp and it still did it

tablatronix avatar Feb 20 '18 20:02 tablatronix