Angus Leeming a écrit :
Michael Gerz wrote:

Note how the bar.h header file forward declares "class Foo;" rather than
including foo.h (which it could have done instead). Qt3 tends to forward
declare a lot less stuff than Qt4.  However, that tends to increase compile
times, not link times. The Qt4 link improvements probably lie elsewhere.

Hum, I'm no expert in that domain but maybe the linker has to "unique" each and every methods that are defined in the duplicate headers. As mingw gcc 3.4 has no support for precompiled header the linker has to do this triage and this should take time, shouldn't it? (this is a question, I'm really not knowledgeable in that field) Maybe it's just that the mingw linker is not as optimized as the linux one and tends to keep multiple instances of the same code in memory... There is an experimental port of gcc 4 to mingw somewhere (thisiscoolgcc IIRC). It might be worth a try to test if things are better with this and precompiled header.

Abdel.


Angus




Reply via email to