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

C++ linking problems with Pardiso (MKL 8.0.017)

mma2
Beginner
540 Views
Hello,

Im trying to migrate my Pardiso Solver from MKL 7.2 to MKL 8.0.017. The following errors were encountered during build. The same code worked fine with MKL 7.2

Thanks. Ming

PardioSample error LNK2019: unresolved external symbol _PARDISO referenced in function _main

PardioSample error LNK2019: unresolved external symbol _omp_get_max_threads referenced in function _main

PardioSample fatal error LNK1120: 2 unresolved externals

=====Source code Heading=========================

#include

#include

#include

#include "mkl_solver.h"

//=====================================================

// With the following definition, MKL 7.1 runs fine.

//extern "C" {int omp_get_max_threads();}

///* PARDISO prototype. */

//#if defined(_WIN32) || defined(_WIN64)

//#define pardiso_ PARDISO

//#else

//#define PARDISO pardiso_

//#endif

//extern int PARDISO

// (void *, int *, int *, int *, int *, int *,

// double *, int *, int *, int *, int *, int *,

// int *, double *, double *, int *);

0 Kudos
0 Replies
Reply