It worked (and works) without turning precompiled headers off with gcc < 4.3.
Since 4.3 there seem to be problems with line numbers in some cases.
I found just one post about this issue, but without a solution:
http://gcc.gnu.org/ml/gcc-help/2008-10/msg00209.html.
For me it only works (with gcc >= 4.3), if I totally turn off precompiled-headers.
NOPCH or not using
CB_PRECOMP or
WX_PRECOMP is not enough.
The only way to totally turn off precompiled headers is in the "Advanced" section of the compiler settings, but that works globally for all projects and is not what I expect.
I use a copy of my gcc for that purpose.
In the project's properties, I am only able to chose the place where the pch is created, but not if it is created or not.
Or do I miss something?
I think a simple checkbox ("Use precompiled headers"), that is checked by default would make sense (in the properties).
What does the other devs think about it ?