in all .cpp files #include "precomp.hpp" should go before all the other includes and macro definitions, otherwise precompiled header mechanism on Windows will not work