Mail Archives: djgpp/1999/04/25/22:40:35
| From: | sam AT greenaumARSE!ARSE!ARSE!.demon.co.uk
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Header files
|
| Date: | Sun, 25 Apr 1999 18:05:52 GMT
|
| Organization: | Rossum's Universal Robots
|
| Message-ID: | <37245860.11385716@158.152.254.70>
|
| NNTP-Posting-Host: | greenaum.demon.co.uk
|
| X-NNTP-Posting-Host: | greenaum.demon.co.uk:194.222.71.189
|
| X-Trace: | news.demon.co.uk 925063621 nnrp-06:29710 NO-IDENT greenaum.demon.co.uk:194.222.71.189
|
| X-Complaints-To: | abuse AT demon DOT net
|
| X-Newsreader: | Forte Agent 1.5/32.452
|
| X-No-Archive: | yes
|
| MIME-Version: | 1.0
|
| Lines: | 21
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
| Reply-To: | djgpp AT delorie DOT com
|
I just don't get header files and what "extern" actually means. I want
to break up a long program, so I've put all the declarations, from the
first #define up til main(), into a .h file.
I've put some of the functions into one .C file, and the rest into
another, and included my .h file in both.
It gives me "multiple definition of blablah" a lot of times.
What do I actually do, what does extern mean? I realise it's simple
but it's a big project and I don't want to mess anything up then have
some obscure bug pop up later and torment me not knowing what it is.
------------------------------------------------------------------------
well I try my best, to be just like I am
but everybody wants you to be jeeeiiiist like them
they say "sing while you slave", but I just get bored,
http://www.greenaum.demon.co.uk/
Protect privacy, boycott Intel: http://www.bigbrotherinside.org
- Raw text -