You cannot place statements like that in the global scope; when would they be executed? Additionally, what you are trying to do isn't meaningful anyway, as header inclusion happens at compile-time, not at run-time as your statements imply you believe.