As far as I know, TCC doesn't support variable length arrays, yet. So
the argument for creating an array must be a constant.
Kenneth
Ammar James wrote:
Another area where gcc compiles fine while tcc issues an error.
Essentially:
int i;
i = strlen(s);
int s2[i]; //tcc doesn't like this.
tcc's error message is: wrong3.c:9: constant expression expected
Code attached (21 lines).
------------------------------------------------------------------------
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tinycc-devel