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]

Re: problem porting using gcc on LYNX OS


> 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


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