Intel® C++ Compiler

DF98 Directory, dfor.lib and Fortran Compiler


I was working on Visual Studio 2013 project and was using C++ that calls Fortran scripts. However, I keep getting the error:

Error LNK1104: cannot open file 'DFOR.lib' Visual Studio

However, I do not even have the DF98 directory where DFOR.lib should reside. I was trying to get it but think I am missing a Fortran compiler and libraries. 

Do I need to download a compiler or are there libraries I can simply get to fix the issue.


Thank you so much,


No error for declspec(dllexport) in Linux


I have below code in Linux which is working fine without any error. Since __declspec(dllexport) and __declspec(dllimport) are windows specific then why compiler is not complaining about it?

code in .hpp is as below.


#define MYEXPORTER __declspec(dllexport)


#define MYEXPORTER __declspec(dllimport)


MYEXPORTER bool isInitialised();

and code in cpp is as below.

MYEXPORTER bool isInitialised(){

return true;


Creating a universal binary using Intel compiler

In MacOSX, gcc command line accepts multiarchitecture options:

gcc -arch i386 -arch x86_64 etc.

... and creates a universal binary by compiling and linking for both archs and running lipo for gluing them together.

However using this command line with Intel, produces a compiler warning:

command line warning #10121: overriding '-arch i386' with '-arch x86_64'

The other option is to perform all 3 steps on my own, however since I'm using cmake - that forces an awkward workaround.

Am I doing something wrong or is this a compiler limitation?

mpicxx using g++ instead of icc


I've just installed the latest Intel distribution for Fortran, C++, and MPI (2018/2 version). However i typed "mpicxx" in terminal to check and it gave the following message:

This script invokes an appropriate specialized C++ MPI compiler driver.
The following ways (priority order) can be used for changing default
compiler name (g++):
   1. Command line option:  -cxx=<compiler_name>
   2. Environment variable: I_MPI_CXX  (current value '')
   3. Environment variable: MPICH_CXX  (current value '')

Expected support for Ubuntu 18.04LTS

Dear all:

Is there an estimate when Ubuntu 18.04LTS will be supported? Our systems have been updated and now compilation with icc fails due to problems with the math.h header

(1230): error: identifier "_LIB_VERSION_TYPE" is undefined

I tried using the -D__PURE_INTEL_C99_HEADERS__ flag but that fails due to other libraries using the system math.h

In file included from /usr/include/boost/math/policies/policy.hpp(29),

icpc + __int128_t + templates = internal error: 04010002_1504


OS: Ubuntu 18.04 x86_64
Compiler version: icpc (ICC) 18.0.2 20180210

I have run into an icpc compiler bug. Intel's C++ compiler fails to compile template functions which use the non-standard __int128_t or __uint128_t types. I ran into this bug when I tried to compile my primecount program ( using icpc. I have created a minimal C++ program (see attached bug.cpp) which reproduces the bug.

Steps to reproduce the bug:

Subscribe to Intel® C++ Compiler