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

example file 'pardiso_sym_f.f' can't be built in command line

Zhanghong_T_
Novice
570 Views

Hi all,

I am trying to build a EM64T version program for the above example file in a 32 bit machine. It displayed the following error message when I built the fileby the following command

ifort pardiso_sym_f.f mkl_solver.lib mkl_em64t.lib libguide40.lib

-out:pardiso_sym_f.exe
-subsystem:console
pardiso_sym_f.obj
mkl_solver.lib
mkl_em64t.lib
libguide40.lib
pardiso_sym_f.obj : error LNK2019: unresolved external symbol PARDISO referenced in function MAIN__
pardiso_sym_f.exe : fatal error LNK1120: 1 unresolved externals

However, If I create a sulution in VS.net2005 and build an x64 version project, the program can be built successfully.

So, could anyone help me to solve the problem, if I need to build such a program in command line?

Thanks,

Zhanghong Tang

0 Kudos
2 Replies
hermannl
Beginner
570 Views

Hi Zhanghong,

I used the following command in an em64t fortran environment (mkl environment not registered):

ifort -Ic:programmeintelmkl9.1include pardiso_sym_f.f /link /libpath:c:programmeintelmkl9.1em64tlib
mkl_solver.lib mkl_em64t.lib libguide.lib

and that worked fine.

Best,

Hermann

0 Kudos
Zhanghong_T_
Novice
570 Views

Hi Hermann,

Thank you very much for your kindly reply! Do you test it in 32 bit windows XP or 64 bit windows XP? It is no problem to build it in 64 bit OS, but for 32 bit OS (still in EM64T fortran environment), it is failed. My commmand line is as follows:

set LIB=%LIB%;C:Program FilesIntelCompilerFortran10.0.025em64tlib;C:Program FilesIntelMKL9.1em64tlib

ifort /O3 pardiso_sym_f.f mkl_solver.lib mkl_em64t.lib libguide.lib

Then the error shown above appears.

Thanks,

Zhanghong Tang

0 Kudos
Reply