delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/21/15:25:28

From: "MB" <bram DOT vaessen AT fnmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: multiple cpp files
Date: Wed, 21 Apr 1999 20:54:15 +0200
Organization: World Access / Planet Internet
Message-ID: <7fl6s7$obvl$1@reader3.wxs.nl>
NNTP-Posting-Host: 195.121.189.228
X-Trace: reader3.wxs.nl 924720839 798709 195.121.189.228 (21 Apr 1999 18:53:59 GMT)
X-Complaints-To: abuse AT wxs DOT nl
NNTP-Posting-Date: 21 Apr 1999 18:53:59 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Lines: 11
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT 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).

thanks




- Raw text -


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