Message-ID: <3AE42D97.799B4A7A@earthlink.net>
From: Sara Droddy <droddys@earthlink.net>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: Errors on Recompile of Kernel
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 29
Date: Mon, 23 Apr 2001 13:24:12 GMT
NNTP-Posting-Host: 38.30.31.10
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 988032252 38.30.31.10 (Mon, 23 Apr 2001 06:24:12 PDT)
NNTP-Posting-Date: Mon, 23 Apr 2001 06:24:12 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net
X-Received-Date: Mon, 23 Apr 2001 06:22:46 PDT (newsmaster1.prod.itd.earthlink.net)
Path: news.adfa.edu.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!news.mel.connect.com.au!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
Xref: news.adfa.edu.au comp.os.minix:37235

Hi everyone:   These are two visibility questions.

First:
Can anyone help me identify the correct place to declare a global
variable so that when I recompile the kernel it is visible everywhere?

I defined a procedure in dmp.c that uses a variable I defined in in
main.c.  It compiled fine without errors and rebooted fine.  But when I
try to use that same 'global' variable (I thought) in proc.c, the
recompile of the kernel says my variable is undefined.

Second:
For the procedure I defined in dmp.c, I also added the line in proto.h
"_PROTOTYPE( void myProcedure, (void) );"
My thought was that this was the place that would make my new procedure
available to keyboard.c which #INCLUDE's proto.h.   Alas, when I
recompile the kernel with this one, the error is from the keyboard.c
file stating that my procedure is undefined.

Anyone with any clues about how to make procedures and variables
available to other files?
I thought that #INCLUDE covered the one aspect and that putting a global
declaration in main.c covered the other, but I am apparently mistaken.

Thanks in advance for any help you can offer.

Sara


