Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7931 Discussions

error MSB6006: "icl.exe" exited with code 2.

dnesteruk
Beginner
753 Views

Out of the blue I'm getting the following error

"1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 15.0\Toolset.targets(357,5): error MSB6006: "icl.exe" exited with code 2."

I've attached full project and appreciate any help you can give.

0 Kudos
2 Replies
Amanda_S_Intel
Employee
753 Views

The error I see is that you did not select the Intel MPI project to build for Debug 64x:

2>------ Build started: Project: HelloMPI, Configuration: Debug x64 ------
2>  stdafx.cpp
1>  stdafx.cpp
2>C:\Users\aksharp\Desktop\HpcSamples\HelloMPI\stdafx.h(3): error : cannot open source file "mpi.h"
2>    #include <mpi.h>
2>                    ^
2>  
2>  compilation aborted for stdafx.cpp (code 4)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 15.0\Toolset.targets(355,5): error MSB6006: "icl.exe" exited with code 2.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

Go to Build -> Configuration Manager and check the box.

0 Kudos
dnesteruk
Beginner
753 Views

Umm, no, this has nothing to do with anything. Projects are not interdependent so I'm only compiling the SIMD project.

0 Kudos
Reply