Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7677 Discussions

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

dnesteruk
Beginner
291 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
291 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.

dnesteruk
Beginner
291 Views

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

Reply