delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/07/11:15:34

From: jesteel AT compugen DOT net (Jason E. Steele)
Newsgroups: comp.os.msdos.djgpp,comp.lang.c
Subject: Re: Can't get external variables to work!??
Date: 07 Feb 1998 09:58:00 -0600
Organization: OnRamp, http://www.onramp.net/
Lines: 18
Message-ID: <m31zxfl853.fsf@compugen.net>
References: <34DC7457 DOT 6A0A7521 AT iafrica DOT com>
NNTP-Posting-Host: host15.compugen.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"Bruce Merry (the Almighty Cheese)" <bmerry DOT nospam AT iafrica DOT com> writes:

> 
> kbd.c:
> #include "c_types.h"
> static volatile byte keys[128];
    ^^^
> /* code for keyboard handling */

The word 'static' used on a file-scope identifier specifies that 
the identifier will have internal linkage (in other words, it can 
not be seen outside of the source file where it's declared, 
'extern' or no)  Try removing the 'static'.
-- 
                 Jason E. Steele <jesteel AT compugen DOT net>
------------------------------------------------------------------------------
"Running Windows on a Pentium is like having a brand new Porsche but only
  [being] able to drive backwards with the handbrake on." (unknown)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019