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

Multitasking CPM fails to compile #392

Open
gertk64 opened this issue Aug 14, 2024 · 1 comment
Open

Multitasking CPM fails to compile #392

gertk64 opened this issue Aug 14, 2024 · 1 comment

Comments

@gertk64
Copy link

gertk64 commented Aug 14, 2024

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
Copy link
Author

gertk64 commented Aug 20, 2024

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..

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