Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Error building codeblocks 7860
oBFusCATed:
--- Quote from: MortenMacFly on February 28, 2012, 08:44:10 am ---In both cases they already should be cleaned automatically. The error IMHO occurs because people don't clean or re-build, they just do a build.
--- End quote ---
But then, why C::B is dumb or not smart enough to regenerate the gch files, when a dependant header changes?
killerbot:
you could have known I would write this ;-)
Can we just stop using precompiled headers all together ?
oBFusCATed:
--- Quote from: killerbot on February 28, 2012, 11:02:24 am ---Can we just stop using precompiled headers all together ?
--- End quote ---
+1 :)
I hate it, when I change something in cbplugin.h and then I have to wait a full recompile...
MortenMacFly:
--- Quote from: oBFusCATed on February 28, 2012, 11:55:53 am ---
--- Quote from: killerbot on February 28, 2012, 11:02:24 am ---Can we just stop using precompiled headers all together ?
--- End quote ---
+1 :)
--- End quote ---
Are you aware that in that case compiling the whole C::B workspace takes roughly twice (if not even more!) the time? We introduced PCH for a good reason. A better thing would be to create a pre-build step that deletes the gch files every time the SDK or C::B main app is compiled. Tat would do it, too but still speed-up the later compile steps.
Still my favourite is to fix the actual error (if any) - however, I usually don't have this trouble. But I also don't know what is different, except the platform (Windows / Linux).
oBFusCATed:
Morten:
Yes, if we just disable the pre-compiled headers and leave all the includes the way they are it will be slower. Because every file includes every file from the SDK, no mater if it needs it or not.
Also as far as I've read about pre-compiled headers, there should be used only for external libs, not for internal stuff, because they cause the pains I'm having.
Removing the PCH should be involving process and will take a lot of effort.
p.s. the full build (full as a build with all plugins, bootstrapping and make install phaze) on linux without pre-compiled headers using autotools takes around 10 minutes. I've not tried what is the time with pch. I'll do a test later and will report my findings.
--- Quote from: MortenMacFly on February 28, 2012, 05:21:33 pm ---Still my favourite is to fix the actual error (if any) - however, I usually don't have this trouble. But I also don't know what is different, except the platform (Windows / Linux).
--- End quote ---
This is another matter and it is unrelated to the disabling of pch.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version