SDCC compiler AX8052F143 error (for(int i=0;i<10;i++))

HELLO ALL,
I use AxCodeBlocks to compiler a demo.
many errors on

for(int i=0;i<10;i++);;;

It means that “int i” can’t appear in for(), I know it was wrong before c99, but I chose c99 in SDCC–compiler – compiler flag–language–ISO C99/ISO C99 with SDCC extensions.

any ways?

thanks
Liu

AFAIR, SDCC added support for this ISO C99 feature in the SDCC 3.7.0 release in 2017.

However, AFAIK, the AX-IDE 1.27 available on onsemi.com includes the older SDCC 3.6.0.

The currently latest release of SDCC is 4.1.0.

1 Like

Get it!
i will try SDCC4.1.0
Thank you!