Hi all. Actually, the MS compilers distinguish <> and "" just fine (at least in my VS 2005 and VS 2010 installation). Dominik, do you perhaps specify the path to your Math.h in include_directories()?
Petr On Mon, Jul 9, 2012 at 3:20 PM, Rolf Eike Beer <e...@sf-mail.de> wrote: > Am 09.07.2012 15:07, schrieb Dominik Szczerba: > >> 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. > > > The reason is very likely that MS compilers are broken regarding the > difference between <> and "" in #include statements, i.e. they always work > as "". You already found out why this is a bad idea. > > Eike > > -- > > 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 -- 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