Closed HeLinSpace closed 2 years ago
This is because Visual Studio doesn't support C99 properly, and doesn't understand for(unsigned int i=0;
Try changing it to unsigned int i;
and for(i=0;
…
Excuse me. How to solve it?Have you considered the ease of use of the software?
I can't help that Microsoft can't write a good C compiler, and Visual Studio still struggles with a C standard from year 1999.
I have a branch with workarounds for the buggy Microsoft compiler. Try using that branch, and let me know if VS still struggles with it:
https://github.com/ImageOptim/libimagequant/tree/msvc
Alternatively, switch to a modern compiler, like GCC 11.
Error C3015 OpenMP "for" statement has an incorrect initialization format of Imagequant :\ workSpace.net \libimagequant\ mediancut-c 202