Thanks a lot for your hints. I managed to find the problem. By some unclear reason iostream or one of its sub-includes includes math.h and very strangely does not take the one in the system folder, instead taking my local file called Math.h in the same folder as test.cxx (Windows names are unfortunately case insensitive). Renaming the file solves the issue.
Regards, Dominik -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake