Board index » cppbuilder » Re: Where is the "initialized data"

Re: Where is the "initialized data"


2005-08-26 10:44:30 PM
cppbuilder18
"Andre Kaufmann" < XXXX@XXXXX.COM >wrote in message
Quote
Didn't remember that it was an error, only that i couldnīt use the
precompiled headers anymore, because an included windows header file had
initialized data in it.
I had to remove most of the includes from my precompiled header file and
compilation speed dropped from 3 to 15 minutes.
Well it's an error in the sense that it stops the
precompile mechanism. It's not a build error.
Quote
Don't know it either. Perhaps there haven't been enough time to
implement support for initialized data in precompiled headers.
At least i hope DeXter will compile these headers without complaining
about initialized data.
I would prefer if it compiled faster without PCH. I don't
like the idea of everybody including everything. Makes
it hard to do unit tests without changing the includes.
 
 

Re:Re: Where is the "initialized data"

"Des O'Toole" <des>wrote in message
Quote

"Andre Kaufmann" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...

>Didn't remember that it was an error, only that i couldnīt use the
>precompiled headers anymore, because an included windows header file had
>initialized data in it.
>I had to remove most of the includes from my precompiled header file and
>compilation speed dropped from 3 to 15 minutes.

The worst culprit for this is math.hpp which contains 2 sections of
inititalised data. For some reason the compiler often reports this as
coming
from a completely different unit.
Likely dialogs.hpp <g>
 

Re:Re: Where is the "initialized data"

"Duane Hebert" < XXXX@XXXXX.COM >writes:
Quote
I would prefer if it compiled faster without PCH. I don't
like the idea of everybody including everything. Makes
it hard to do unit tests without changing the includes.
Very true. But that's also why abstract interfaces are such a
wonderful thing. You can write "stubs" for a unit test.
--
Chris (TeamB);
 

{smallsort}

Re:Re: Where is the "initialized data"

"Chris Uzdavinis (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote
"Duane Hebert" < XXXX@XXXXX.COM >writes:

>I would prefer if it compiled faster without PCH. I don't
>like the idea of everybody including everything. Makes
>it hard to do unit tests without changing the includes.

Very true. But that's also why abstract interfaces are such a
wonderful thing. You can write "stubs" for a unit test.
Yep. But it still makes me feel like I'm doing extra
work to make my tools happy. Anyway, besides unit
tests, my code has to work on more than one platform.
Also a problem with PCH...