Chris--A / PrintEx

An extension to the Arduino Print library, and much, much more...
GNU General Public License v3.0
61 stars 16 forks source link

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

Open mbueno0 opened 2 years ago

mbueno0 commented 2 years ago

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.