cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/21/16:10:32

From: "MB" <bram DOT vaessen AT fnmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: multiple cpp files
Date: Wed, 21 Apr 1999 21:44:16 +0200
Organization: World Access / Planet Internet
Lines: 21
Message-ID: <7fl9q1$s4o$1@reader1.wxs.nl>
References: <7fl6s7$obvl$1 AT reader3 DOT wxs DOT nl> <199904211933 DOT PAA08702 AT envy DOT delorie DOT com>
NNTP-Posting-Host: 195.121.189.111
X-Trace: reader1.wxs.nl 924723841 28824 195.121.189.111 (21 Apr 1999 19:44:01 GMT)
X-Complaints-To: abuse AT wxs DOT nl
NNTP-Posting-Date: 21 Apr 1999 19:44:01 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

thanks, but how exactly did you use that word again?
in the cpp file or in the header file?


DJ Delorie heeft geschreven in bericht
<199904211933 DOT PAA08702 AT envy DOT delorie DOT com>...
>
>> I have a little project with a few cpp files and a header file. The
problem
>> is that i want to define a few variables that are known all over the
project
>> in all cpp files. If i define them in the header file and include the
header
>> file in all the cpp files they all compile but it won't link (multiple
>> define error). So how can i do this? (if it is possible).
>
>Sounds like you're forgetting the "extern" keyword.
>
>http://www.delorie.com/djgpp/doc/ug/ - the "larger progects" sections.


- Raw text -


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