Mail Archives: djgpp/1997/05/08/21:02:26
From: | rellwood <rellwood AT aludra DOT usc DOT edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Global Variables
|
Date: | 8 May 1997 16:54:28 -0700
|
Organization: | University of Southern California, Los Angeles, CA
|
Lines: | 16
|
Message-ID: | <Pine.SV4.3.94.970508164914.13011B-100000@aludra.usc.edu>
|
NNTP-Posting-Host: | aludra.usc.edu
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
How in the world do I get global variables to be global in several files
that have been linked together? As my code is now, I have the
declarations of the variables in a header file, but when I try to include
it in more then one .c file the linker complians of multiple
declairations. This, of course, makes perfect sense, so I tried making
them each extern in the header file, but that didn't work either.
What am I suppose to do here?
Muchos thanks,
Richard Ellwood
--
- Raw text -