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

How should I write this Makefile in C++ composer?

fishheart
Beginner
257 Views

I am using a softwaretool under linux,its makefile is written like this:
"

INTEL_PATH = /opt/intel/Compiler/11.1/064

# ICC

CC = icpc

FLAGS = -openmp -O3 -axSSE4.1

#FLAGS = -openmp -ggdb -O0

INCLUDE = -I$(INTEL_PATH)/include -I$(INTEL_PATH)/mkl/include -I$(INTEL_PATH)/ipp/em64t/include

LIB = -L$(INTEL_PATH)/mkl/lib/em64t -L$(INTEL_PATH)/ipp/em64t/sharedlib -lmkl_solver_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lippcoreem64t -lippsem64t -openmp -lpthread

"

But I can not get Intel C++ compiler 11.1 officially,only I can download is "Intel C++ composer",I found those lines in makefile cannot work with C++ composer,for the wrong path.
In C++ composer,I cannot find "mkl/lib/em64t" or "ipp/em64t/sharedlib"
How should I change those command lines to make the "makefile" compatible with C++ composer???
Please help me! Thank you!

0 Kudos
1 Reply
TimP
Honored Contributor III
257 Views
If you set environment first by the supplied script, e.g.
source /opt/intel/composer_xe_2011_sp1.9.293/bin/compilervars.sh intel64
(if you installed in the default location)
you should not need to set any of those -L paths. The INTEL_PATH for the version could be
/opt/intel/composerxe/compiler/ which should have been updated as a symlink into your last installation.
You should be able to check the symlinks where you installed by ls.
In a normal makefile you would set CC=icc and CXX=icpc
The FFLAGS will be ignored unless you include it in further rules; normally you would use CFLAGS for icc and CXXFLAGS for icpc.
0 Kudos
Reply