Very annoying error when trying to compile C++ project with Visual Studio 2010 and Intel Compiler XE 13.0 (btw, it’s also reproducible with Intel Compiler 12 and 14). With Microsoft compilers projected compiles without warning but with Intel this error message comes up:
error : unable to obtain mapped memory (see pch_diag.txt)
Intel suggest here that this is the problem with precompiled headers but it turns out problems is in icl.exe (Intel compiler). It needs admin rights. You can either give it explicitly to icl.exe or start Visual Studio as Administrator.