This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem porting using gcc on LYNX OS
- To: sandras at globes dot com
- Subject: Re: problem porting using gcc on LYNX OS
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Tue, 26 Oct 1999 01:09:15 +0200
- CC: bug-gcc at gnu dot org, help-gcc at gnu dot org
- References: <3.0.32.19991025105139.00974380@mailhub.globes.com>
> 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