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

Won't compile on esp8266- this is the example from the 'basic usage' example. #41

Open
mbueno0 opened this issue Apr 15, 2022 · 0 comments

Comments

@mbueno0
Copy link

mbueno0 commented Apr 15, 2022

Arduino: 1.8.19 (Windows 10), TD: 1.56, Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

In file included from C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/PrintVariadic.h:24,

             from C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/PrintExtension.h:43,

             from C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/MemoryPrinter.h:25,

             from C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/PrintEx.h:26,

             from C:\Users\mbuen\Documents\Arduino\printEx_test\printEx_test.ino:8:

C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/TypeTraits.h:78:55: error: 'template<bool V, class T, class U> struct select' redeclared as different kind of entity

78 | template< bool V, typename T, typename U > struct select { typedef U type; };

  |                                                       ^~~~~~

In file included from c:\users\mbuen\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\sys\types.h:50,

             from c:\users\mbuen\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\stdio.h:61,

             from C:\Users\mbuen\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Arduino.h:32,

             from C:\Users\mbuen\Documents\Arduino\printEx_test\printEx_test.ino:7:

c:\users\mbuen\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\sys\select.h:76:5: note: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'

76 | int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,

  |     ^~~~~~

In file included from C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/PrintVariadic.h:24,

             from C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/PrintExtension.h:43,

             from C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/MemoryPrinter.h:25,

             from C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/PrintEx.h:26,

             from C:\Users\mbuen\Documents\Arduino\printEx_test\printEx_test.ino:8:

C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/TypeTraits.h:79:46: error: 'select' is not a class template

79 | template<typename T, typename U > struct select<true,T,U>{ typedef T type; };

  |                                              ^~~~~~

C:\Users\mbuen\Documents\Arduino\libraries\PrintEx\src/lib/TypeTraits.h:79:61: error: 'template<class T, class U> struct select' redeclared as different kind of entity

79 | template<typename T, typename U > struct select<true,T,U>{ typedef T type; };

  |                                                             ^

In file included from c:\users\mbuen\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\sys\types.h:50,

             from c:\users\mbuen\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\stdio.h:61,

             from C:\Users\mbuen\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Arduino.h:32,

             from C:\Users\mbuen\Documents\Arduino\printEx_test\printEx_test.ino:7:

c:\users\mbuen\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\sys\select.h:76:5: note: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'

76 | int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,

  |     ^~~~~~

exit status 1

Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

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

1 participant