From: jxh AT cs DOT wustl DOT edu (James Hu) Newsgroups: comp.os.msdos.djgpp,comp.lang.c Subject: Re: Can't get external variables to work!?? Date: 8 Feb 1998 03:21:46 GMT Organization: Washington University in St. Louis Lines: 19 Message-ID: References: <34DC7457 DOT 6A0A7521 AT iafrica DOT com> <34DCAE69 DOT F64D9DCE AT acm DOT org> NNTP-Posting-Host: lambada.cs.wustl.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Sat, 07 Feb 1998 13:56:41 -0500, Pete Becker wrote: >James Hu wrote: >> >> This problem could have been diagnosed if you had #include'd kbd.h into >> kbd.c. > >Well, no. It's perfectly legal to have an extern declaration followed by >a static definition. So the compiler is not required to say anything if >you do this. As Lawrence has pointed out, the behavior is undefined. But, I'll amend my statement to "might have been diagnosed". -- James C. Hu Computer Science Doctoral Student http://www.cs.wustl.edu/~jxh/ Washington University in Saint Louis >>>>>>>>>>>>> I use *SpamBeGone*