delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/13/08:42:24

From: "Marcus" <mesthlm AT hem DOT passagen DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Values in header ?? (urgent)
Date: Sun, 13 Feb 2000 14:27:19 +0100
Organization: Telenordia
Lines: 22
Message-ID: <886bi1$2l0$1@cubacola.tninet.se>
NNTP-Posting-Host: cns2-210-200.cm.starport.se
X-Trace: cubacola.tninet.se 950448513 2720 193.150.210.200 (13 Feb 2000 13:28:33 GMT)
X-Complaints-To: abuse AT algo DOT net
NNTP-Posting-Date: 13 Feb 2000 13:28:33 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi!
Why canīt I declare a value in a header without get the error "multiple
definiton" when I include the header several times? I have tried #ifndef but
NOTHING seems to work.

If the header looks like this:
#ifndef HEADER
#define HEADER
bool value;
#endif

This error appear:
Error: multiple definiton of 'value'

...when I include the header two times or if I try to compile the header.
Can someone wise explain what's wrong? Thank you...

--
/regards Marcus



- Raw text -


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