ah, sorry, the right key combination is Ctrl+Shift+F9 of course, sorry for the error, the finger know, the mind doesn't.
and the reason for the behavior of codeblocks: in a header file there normally is no source code, only declarations and similar, these do not compile but serve the compiler and linker to get his work done and to do some checking of types and so ...
Ciau