Why is he warning? I'm compiling release-target and in the folder ./wx_pch.h.gch there is a file "Release_wx_pch_h_gch" newly generated. So what does he ( the gcc ) want to tell me ...
?
In your case, this is a possibly harmless warning which is emitted because of the
-Wivnalid-pch option in your project's build options.
When PCH is used as a directory, each build target creating that PCH creates it in the one and same directory, using the target name as a prefix (in your case I 'd bet Debug_*_gch and Release_*_gch). It's up to gcc to pick the correct PCH up and use it. The warning just tells you that it ignores the *other* PCH, the one it doesn't use.