problem porting using gcc on LYNX OS
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Sun Oct 31 23:03:00 GMT 1999
> I am trying to compile a program that seem to be having a scope
> problem on LYNX using GCC. I works with other compilers. The
> '-traditional' cc option doesn't work. Below is a small example
> program that demonstrates the problem:
As far as I can tell, your program is really incorrect, and was ever
since C was invented. To fix it, you need to make the tmp declarations
static:
static int tmp;
Hope this helps,
Martin
More information about the Gcc-bugs
mailing list