How about adding #ifdef _USE_PCH #include <pch.h> #endif
Even this does not satisfy msvc. msvc replaces things before (and include) pch.h with precompiled headers generated by pch.cpp, and leaves one #endif in the .cpp file, which of course results in trouble. Note that pragma does not work in this case, pch.h has to be included. Unless others (Andre?) can find a way to please both msvc and Lars, I am giving up. Cheers, Bo