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: bug-gcc at gnu dot org, help-gcc at gnu dot org, sandras at globes dot com
- Subject: Re: problem porting using gcc on LYNX OS
- From: Mike Stump <mrs at windriver dot com>
- Date: Mon, 25 Oct 1999 18:52:06 -0700 (PDT)
> Date: Mon, 25 Oct 1999 10:51:39 -0700
> To: bug-gcc@gnu.org, help-gcc@gnu.org
> From: Sandra Seymour <sandras@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:
> TEST.C
> int tmp;
> TEST1.C
> int tmp;
> This program generated the following errors:
> /usr/tmp/cc1392.o(.bss+0x0):test1.c: multiple definition of `tmp'
> /usr/tmp/cc1391.o(.bss+0x0):test.c: first defined here
The above is invalid C++. The other compilers are wrong for not
giving you an error message. This isn't a bug in the compiler.
If you meant to use the C compiler, please don't use the .C extension,
or use -xc on the compile line.
You can work around this bug in your program by giving the option
-fconserve-space to the compiler.