Mail Archives: djgpp/1999/03/21/15:26:03
From: | krugman AT nospam DOT demon DOT co DOT uk (Kevin)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Scope of global variables in multi source file projects
|
Date: | Sun, 21 Mar 1999 19:03:26 GMT
|
Message-ID: | <36f540ad.2278420@158.152.254.68>
|
NNTP-Posting-Host: | reality-bytes.demon.co.uk
|
X-NNTP-Posting-Host: | reality-bytes.demon.co.uk:212.228.30.60
|
X-Trace: | news.demon.co.uk 922042980 nnrp-04:26203 NO-IDENT reality-bytes.demon.co.uk:212.228.30.60
|
X-Complaints-To: | abuse AT demon DOT net
|
X-Newsreader: | Forte Agent 1.5/32.451
|
MIME-Version: | 1.0
|
Lines: | 26
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi All,
I'm having another go at trying to use multiple source files,
something I gave up on a long while ago because of all the extra
problems I got, I have declared a couple of global variable in the
file with the main function and find that they are inaccessible from
from the other source files in the project,
all my source files are .CPP files
How do I make a global variable accessable to all my source files.
If I stick them in the project header file, I get all sorts iof weird
errors, so I don't think they should go in there.
I would be gratefull for any help
I have looked at the FAQ by the way, but this is probably ANSI C / C++
specific.
Kevin.
kevin AT reality-bytes DOT demon DOT co DOT uk
- Raw text -