This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

strange error


When I try to compile this code (witch has one ')' missing)
I get a strange error... Is it a bug?

I use gcc (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)

29: for(i=1; i<nArg ;printf("%s\n", vsArg[i],i++)
30:   if(strcmp(vsArg[i], "-png")==0)
31:     opz.nomeimg = vsArg[++i];

cbarre.c: In function `argomenti':
cbarre.c:29: warning: too many arguments for format
cbarre.c:30: parse error before "if"
cbarre.c:30: `__s1_len' undeclared (first use in this function)
cbarre.c:30: (Each undeclared identifier is reported only once
cbarre.c:30: for each function it appears in.)
cbarre.c:30: `__s2_len' undeclared (first use in this function)
cbarre.c:30: warning: left-hand operand of comma expression has no effect
cbarre.c:30: warning: left-hand operand of comma expression has no effect
cbarre.c:30: warning: left-hand operand of comma expression has no effect
cbarre.c:30: warning: left-hand operand of comma expression has no effect
cbarre.c: At top level:
cbarre.c:30: parse error before ')' token
cbarre.c:32: parse error before '[' token
cbarre.c:32: warning: type defaults to `int' in declaration of `__result'
cbarre.c:32: ISO C forbids data definition with no type or storage class
cbarre.c:32: parse error before '}' token
cbarre.c:32: conflicting declarations of `__result'
cbarre.c:32: `__result' previously declared here
cbarre.c:32: warning: `__result' was declared `extern' and later `static'
cbarre.c:32: `vsArg' undeclared here (not in a function)
cbarre.c:32: `i' undeclared here (not in a function)
cbarre.c:32: `__s2' undeclared here (not in a function)
cbarre.c:32: parse error before "if"
cbarre.c:32: warning: type defaults to `int' in declaration of `__result'
cbarre.c:32: conflicting declarations of `__result'
cbarre.c:32: `__result' previously defined here
cbarre.c:32: ISO C forbids data definition with no type or storage class
cbarre.c:32: parse error before '}' token
cbarre.c:32: warning: type defaults to `int' in declaration of `__result'
cbarre.c:32: ISO C forbids data definition with no type or storage class
cbarre.c:32: parse error before '}' token
cbarre.c:32: conflicting declarations of `__result'
cbarre.c:32: `__result' previously declared here
cbarre.c:32: warning: `__result' was declared `extern' and later `static'
cbarre.c:32: `__s1' undeclared here (not in a function)
cbarre.c:32: parse error before "if"
cbarre.c:32: warning: type defaults to `int' in declaration of `__result'
cbarre.c:32: conflicting declarations of `__result'
cbarre.c:32: `__result' previously defined here
cbarre.c:32: ISO C forbids data definition with no type or storage class
cbarre.c:32: parse error before '}' token
cbarre.c:34: parse error before '[' token
cbarre.c:34: warning: type defaults to `int' in declaration of `__result'
cbarre.c:34: ISO C forbids data definition with no type or storage class
cbarre.c:34: parse error before '}' token
cbarre.c:34: conflicting declarations of `__result'
cbarre.c:34: `__result' previously declared here
cbarre.c:34: warning: `__result' was declared `extern' and later `static'
cbarre.c:34: `vsArg' undeclared here (not in a function)
cbarre.c:34: `i' undeclared here (not in a function)
cbarre.c:34: `__s2' undeclared here (not in a function)
cbarre.c:34: parse error before "if"
cbarre.c:34: warning: type defaults to `int' in declaration of `__result'
cbarre.c:34: conflicting declarations of `__result'
cbarre.c:34: `__result' previously defined here
cbarre.c:34: ISO C forbids data definition with no type or storage class
cbarre.c:34: parse error before '}' token
cbarre.c:34: warning: type defaults to `int' in declaration of `__result'
cbarre.c:34: ISO C forbids data definition with no type or storage class
cbarre.c:34: parse error before '}' token
cbarre.c:34: conflicting declarations of `__result'
cbarre.c:34: `__result' previously declared here
cbarre.c:34: warning: `__result' was declared `extern' and later `static'
cbarre.c:34: `__s1' undeclared here (not in a function)
cbarre.c:34: parse error before "if"
cbarre.c:34: warning: type defaults to `int' in declaration of `__result'
cbarre.c:34: conflicting declarations of `__result'
cbarre.c:34: `__result' previously defined here
cbarre.c:34: ISO C forbids data definition with no type or storage class
cbarre.c:34: parse error before '}' token
cbarre.c:36: parse error before '[' token
cbarre.c:36: warning: type defaults to `int' in declaration of `__result'
cbarre.c:36: ISO C forbids data definition with no type or storage class
cbarre.c:36: parse error before '}' token
cbarre.c:36: conflicting declarations of `__result'
cbarre.c:36: `__result' previously declared here
cbarre.c:36: warning: `__result' was declared `extern' and later `static'
cbarre.c:36: `vsArg' undeclared here (not in a function)
cbarre.c:36: `i' undeclared here (not in a function)
cbarre.c:36: `__s2' undeclared here (not in a function)
cbarre.c:36: parse error before "if"
cbarre.c:36: warning: type defaults to `int' in declaration of `__result'
cbarre.c:36: conflicting declarations of `__result'
cbarre.c:36: `__result' previously defined here
cbarre.c:36: ISO C forbids data definition with no type or storage class
cbarre.c:36: parse error before '}' token
cbarre.c:36: warning: type defaults to `int' in declaration of `__result'
cbarre.c:36: ISO C forbids data definition with no type or storage class
cbarre.c:36: parse error before '}' token
cbarre.c:36: conflicting declarations of `__result'
cbarre.c:36: `__result' previously declared here
cbarre.c:36: warning: `__result' was declared `extern' and later `static'
cbarre.c:36: `__s1' undeclared here (not in a function)
cbarre.c:36: parse error before "if"
cbarre.c:36: warning: type defaults to `int' in declaration of `__result'
cbarre.c:36: conflicting declarations of `__result'
cbarre.c:36: `__result' previously defined here
cbarre.c:36: ISO C forbids data definition with no type or storage class
cbarre.c:36: parse error before '}' token
cbarre.c:38: parse error before '[' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `vsArg' undeclared here (not in a function)
cbarre.c:38: `i' undeclared here (not in a function)
cbarre.c:38: `__s2' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `__s1' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: parse error before '[' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `vsArg' undeclared here (not in a function)
cbarre.c:38: `i' undeclared here (not in a function)
cbarre.c:38: `__s2' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `__s1' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: parse error before '[' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `vsArg' undeclared here (not in a function)
cbarre.c:38: `i' undeclared here (not in a function)
cbarre.c:38: `__s2' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously declared here
cbarre.c:38: warning: `__result' was declared `extern' and later `static'
cbarre.c:38: `__s1' undeclared here (not in a function)
cbarre.c:38: parse error before "if"
cbarre.c:38: warning: type defaults to `int' in declaration of `__result'
cbarre.c:38: conflicting declarations of `__result'
cbarre.c:38: `__result' previously defined here
cbarre.c:38: ISO C forbids data definition with no type or storage class
cbarre.c:38: parse error before '}' token
cbarre.c:32: register name not specified for `__result'
cbarre.c:32: register name not specified for `__result'
cbarre.c:34: register name not specified for `__result'
cbarre.c:34: register name not specified for `__result'
cbarre.c:36: register name not specified for `__result'
cbarre.c:36: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
cbarre.c:38: register name not specified for `__result'
make: *** [/home/mirko/codici/eseg/cbarre.o] Error 1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]