Community
cancel
Showing results for 
Search instead for 
Did you mean: 
wilson__david
Beginner
140 Views

Intel Cpp compiler Linking error

Hi there, when I try to compile a simple cpp program with the intel cpp compiler (icl), I get the following error: 

LINK : fatal error LNK1104: cannot open file 'libcpmt.lib'

When I look at the LIB environment path variable, I see the following: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\c
ompiler\lib;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.0.1
09\windows\compiler\lib\intel64;C:\Program Files (x86)\IntelSWTools\compilers_an
d_libraries_2017.0.109\windows\compiler\lib\intel64_win;C:\Program Files (x86)\M
icrosoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual
 Studio 14.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0
.14393.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64;
C:\Program Files (x86)\Windows Kits\10\lib\10.0.14393.0\um\x64;C:\Program Files
(x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\mpi\intel64\bin\..
\..\intel64\lib;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017
.0.109\windows\ipp\lib\intel64;C:\Program Files (x86)\IntelSWTools\compilers_and
_libraries_2017.0.109\windows\mkl\lib\intel64;C:\Program Files (x86)\IntelSWTool
s\compilers_and_libraries_2017.0.109\windows\compiler\lib\intel64;C:\Program Fil
es (x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\tbb\bin\..\lib\
intel64\vc14;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.0.
109\windows\daal\lib\intel64_win;C:\Program Files (x86)\IntelSWTools\compilers_a
nd_libraries_2017.0.109\windows\tbb\lib\intel64_win\vc_mt;C:\Program Files (x86)
\IntelSWTools\compilers_and_libraries_2017.0.109\windows\mpi\intel64\bin\..\..\i
ntel64\lib;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib;

The DLL file (libcpmt.lib) is located at both C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib and C:\Program Files (x86)\M
icrosoft Visual Studio 14.0\VC\LIB\amd64. How do I fix this error?

I am using a makefile rather than Visual Studio 2015 itself. I am running the makefile from the Compiler 17.0 environment for visual studio 2015.

 

0 Kudos
2 Replies
Anoop_M_Intel
Employee
140 Views

Hi David,

Could you please provide the list of compiler options you are using to build this application? Does this happen only for your application on your env or does it happen for even a simple hello world applicatio when you build with /MT compiler option?

Thanks and Regards
Anoop

 

wilson__david
Beginner
140 Views

Hi Anoop. I am not using any compiler options. It does not happen with a helloworld, which compiles fine. I am however linking to the boost libraries using the -I flag.

The following includes are used throughout the project:

 

#include<iostream>
#include<sstream>
#include<fstream>
#include<cstdlib>

#include<math.h>

#include<iomanip>
#include<time.h>

 

Thanks,

 

David

Reply