Mail Archives: djgpp/2000/03/06/11:08:40
From: | Hans-Bernhard Broeker <broeker AT acp3bf DOT physik DOT rwth-aachen DOT de>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: make a faster blit (allegro)
|
Date: | 6 Mar 2000 15:39:40 GMT
|
Organization: | Aachen University of Technology (RWTH)
|
Lines: | 19
|
Message-ID: | <8a0jfs$dpv$1@nets3.rz.RWTH-Aachen.DE>
|
References: | <89r0b7$d37$1 AT wanadoo DOT fr>
|
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de
|
X-Trace: | nets3.rz.RWTH-Aachen.DE 952357180 14143 137.226.32.75 (6 Mar 2000 15:39:40 GMT)
|
X-Complaints-To: | abuse AT rwth-aachen DOT de
|
NNTP-Posting-Date: | 6 Mar 2000 15:39:40 GMT
|
User-Agent: | tin/1.4-19991113 ("No Labels") (UNIX) (Linux/2.0.0 (i586))
|
Originator: | broeker@
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Cyberdivad <cyberdivad AT caramail DOT com> wrote:
> And does someone know why i can't initialise variables in my header files ?
You can't, because the C language never supported initialized variable
definitions in header files. That's simply incorrect code you have
there. In a header file, only declarations of variables (with the
'extern' keyword in front of them, and no initialization) have a right
to live. Definitions, with or without initializers, belong into the .c
source file, instead.
> (it is very important for my program)
It most certainly isn't important for the program. If at all, it may
seem important, because of your current way of writing it.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -