C++ linking problems with Pardiso (MKL 8.0.017)

C++ linking problems with Pardiso (MKL 8.0.017)

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 *);

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.