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

MSB6006 "icl.exe" exited with code 4.

Gordon_B_
Beginner
764 Views

Hi All,

I'm attempting to build a .lib from a C code .cpp file.  Code has run OK before under VS6

The .lib is to be linked to a FORTRAN project

I'm totally unfamiliar with C projects and get a compile failure message as below.

Can anyone explain this to me please

Thanks, Gordon

 

1>------ Build started: Project: RayOpt, Configuration: Release x64 ------
1>rayopt.cpp
1>Catastrophic error: cannot open precompiled header file "x64\Release\RayOpt.pchi"
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\Intel C++ Compiler 19.0\Toolset.targets(350,5): error MSB6006: "icl.exe" exited with code 4.
1>Done building project "RayOpt.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

0 Kudos
1 Reply
Viet_H_Intel
Moderator
764 Views

Seems like the compiler could not find RayOpt.pchi.

0 Kudos
Reply