[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] tcc and declaring arrays.

From: Ammar James
Subject: [Tinycc-devel] tcc and declaring arrays.
Date: Tue, 16 Jun 2009 15:54:06 -0400

Another area where gcc compiles fine while tcc issues an error.

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

Attachment: wrong3.c
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]