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

how to compile code link with mkl in windows

yongbei_ma_
New Contributor I
364 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
Honored Contributor III
364 Views

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

0 Kudos
yongbei_ma_
New Contributor I
364 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?

0 Kudos
Reply