Probably 'index' is already defined as a function or variable in some header. In fact if you put all the code in a namespace, it compiles with no errors. Regards, Davide
int index;
public int main(string[] args)
{
stdout.printf("Ran program: %i",index);
return 0;
}
I get the following errors:
default/main.c:13: error: ‘index’ redeclared as different kind of symbol
default/main.c:14: error: ‘index’ redeclared as different kind of symbol
So I checked the C file, which contains the following:
extern gint index;
gint index = 0;
This is what's throwing the C compiler off... Anybody have a suggestion?
Thanks -Harry
Attachment:
signature.asc
Description: This is a digitally signed message part.