fdivitto / FabGL

ESP32 Display Controller (VGA, PAL/NTSC Color Composite, SSD1306, ST7789, ILI9341), PS/2 Mouse and Keyboard Controller, Graphics Library, Sound Engine, Game Engine and ANSI/VT Terminal
http://www.fabglib.org
Other
1.47k stars 218 forks source link

Multitasking CPM fails to compile #392

Open gertk64 opened 3 months ago

gertk64 commented 3 months ago

Hi Fabrizio, Just wanted to try the new CPM Multitasking example but I run into this:

`/tmp/.arduinoIDE-unsaved2024714-8245-1qpkqhb.w7ioi/MultitaskingCPM/src/BDOS.cpp: In member function 'void BDOS::searchNextFillDMA_FCB(FileSearchState, bool, const char)': /tmp/.arduinoIDE-unsaved2024714-8245-1qpkqhb.w7ioi/MultitaskingCPM/src/BDOS.cpp:3906:45: error: no matching function for call to 'tmin(long int, int)' 3906 | m_HAL->writeByte(DMA + FCB_RC, fabgl::tmin((state->size + 127) / 128, 128)); | ~~~^~~~~~~~ In file included from /home/gert/Arduino/libraries/FabGL/src/fabgl.h:312, from /tmp/.arduinoIDE-unsaved2024714-8245-1qpkqhb.w7ioi/MultitaskingCPM/src/HAL.h:34, from /tmp/.arduinoIDE-unsaved2024714-8245-1qpkqhb.w7ioi/MultitaskingCPM/src/BDOS.h:31, from /tmp/.arduinoIDE-unsaved2024714-8245-1qpkqhb.w7ioi/MultitaskingCPM/src/BDOS.cpp:29: /home/gert/Arduino/libraries/FabGL/src/fabutils.h:140:10: note: candidate: 'template const T& fabgl::tmin(const T&, const T&)' 140 | const T& tmin(const T & a, const T & b) | ^~~~ /home/gert/Arduino/libraries/FabGL/src/fabutils.h:140:10: note: template argument deduction/substitution failed: /tmp/.arduinoIDE-unsaved2024714-8245-1qpkqhb.w7ioi/MultitaskingCPM/src/BDOS.cpp:3906:45: note: deduced conflicting types for parameter 'const T' ('long int' and 'int') 3906 | m_HAL->writeByte(DMA + FCB_RC, fabgl::tmin((state->size + 127) / 128, 128)); | ~~~^~~~~~~~

exit status 1

Compilation error: no matching function for call to 'tmin(long int, int)'`

Any ideas ?

Kind regards, Gert

gertk64 commented 2 months ago

With Espressif board library 2.0.17 it compiles without errors and runs but WIFISCAn states no WIFI support, enable in defs. h In defs.h it says #define HAS_WIFI..