Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7693 Discussions

how to compile code link with mkl in windows

yongbei_ma_
New Contributor I
179 Views

Hi friends,

In my windows,I compile the code link with mkl,but it still not work.

>"C:\Program Files (x86)\Intel\Composer XE 2015\bin\compilervars.bat" intel64

>"C:\Program Files (x86)\Intel\Composer XE 2015\mkl\bin\mklvars.bat" intel64

>icl mycode.cpp /Qmkl

.........cannot find fftw3.h.......................

most according to to this page:https://software.intel.com/en-us/articles/intel-mkl-111-getting-started

I used the mkl 11.2

thanks.

0 Kudos
2 Replies
TimP
Black Belt
179 Views

You would likely need the -I specification to point to your mkl include folder.

yongbei_ma_
New Contributor I
179 Views

Tim Prince wrote:

You would likely need the -I specification to point to your mkl include folder.

thanks a lot,I found I should use #include <fftw/fftw3.h> instead of #include<fftw3.h>

actually if run the mklvar.bat the include floder will add to the path,so -I may be not needed?

Reply