Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

MKL Linking issue

augu
Beginner
591 Views
Hi

I am new to MKL. I am trying to setup the environment (Visual Studio 2005 + Intel Visual Fortran 10.1 + MKL 10.0) to compile the example program with the FGMRES routines in the Reference Manual.

I followed the guidelines for linking with IVF in the User's Guide:

1.Select Project > Properties > Linker > General.
2.For Additional Library Directories, add the architecture-specific lib folder,
for example, C:Program FilesIntelMKL10.0.xxxia32lib, where xxx is the Intel MKL package number, for instance, "039".
3.Select Project > Properties > Linker > Input.
4.In the Additional Dependencies line, insert mkl_c.lib libguide.lib.


However, I got this when I try to compile the program:

mkl_rci.fi(28) : Warning: Bad # preprocessor line

and a series of unresovled symbol errors when I try to build the program.

Any idea I can get through this?

Thanks in advance.
0 Kudos
2 Replies
TimP
Honored Contributor III
591 Views
This looks like your setup didn't pass an appropriate /Qfpp option to ifort (enable pre-processing during compile).
0 Kudos
augu
Beginner
591 Views
tim18:
This looks like your setup didn't pass an appropriate /Qfpp option to ifort (enable pre-processing during compile).


I have put the "/Qfpp" in Project->Properties->Command Line. But I still get the warnings while compiling the program.

The bright side is that after I added the proper include and library directory in Options and Projects properties the program can be built, with the annoying warning though.
0 Kudos
Reply