slviajero / tinybasic

A BASIC interpreter for Arduino, ESP, RP2040, STM32, Infineon XMC and POSIX with IoT and microcontroller features.
GNU General Public License v3.0
205 stars 32 forks source link

Compile with old MinGW 7.0.0 (GCC 7.5.0) #57

Closed guidol70 closed 11 months ago

guidol70 commented 1 year ago

Hi , after taking the oldest 32Bit WinLabs MinGW or the oldest 64Bit WinLabs MinGW from their website (all way down the page into the rabbit-hole) I could compile your newest Basic2 (Basic 1.5a) with this MinGW 7.0.0 without errors :)

Filesystem started
Stefan's Basic 1.5a Memory 65535 1024

Before the additinal semicolons I did get an error about the const at line 85 - because (I think) the semicolons were missing.

and

runtime.c:1965:1: error: unknown type name 'int32_t'; did you mean 'uint
 int32_t devfasttick = 0;
 ^~~~~~~
 uint32_t

Please check.

This version need only to be unzipped (as extracted in a mingw32-folder) and then put there the extracted mingwvars.bat and execute it before the first compile from your source-directory ;)

mingwvars.zip

Basic2_MinGW_compiled.zip

Maybe this could help to rellace your old mingw 6.x you mentioned in the Issue 50

IoTBASIC_MinGW_Calc_Pi1000

Kind regards Guido

slviajero commented 11 months ago

Fixed now directly.