- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to run this example:
Main Link >>
https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/
Example Path >>
Linear Equations > ?gesv > dgesv Example > Example Program in C
Windows 10 & VS 2017 C++. Just updated the Community version. Chose "parallel" option in Properties >> "Intel Performance Library"
The Compilation Error >>
1>MKL Test 3 - Main.obj : error LNK2019: unresolved external symbol "void __cdecl dgesv(int *,int *,double *,int *,int *,double *,int *,int *)" (?dgesv@@YAXPAH0PAN00100@Z) referenced in function _main
I have searched the IntelSWTools to no avail. The closest I got was dgesv.f90 in this directory >
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.1.156\windows\mkl\interfaces\lapack95\source
In another library (ALGLIB) using splines ... inclusion of 13 .cpp files into the project from that library worked. But within the MKL I find no such .cpp files; although MKL might be calling Fortran versions? However it is done ... I am striking out. Have spent many hours over several days trying all kinds of suggested linking techniques. I dare not dream of using the high end optimization aspects of the MKL until I can at least get a basic example working. I also need the polynomial form (with coefficients) for data curve fitting. (The ALGLIB Barrymetric format is too awkward. I need to calculate derivatives along the fitted curve and polynomials are what I understand.)
Thanks for your help!
** Merry Christmas **
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi John,
Hope you had Merry Chrismas.
Sorry for hear this. The compiler error seems related to the C code and C++ code.(*.cpp). you may change
the cpp file to c file, and rebuild
or add mkl.h head files.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
one of the reason of this problem may be integration to MVSC 2017.
You may try manually link your application with mkl follow by this KB article recipe, i hope this help.
thanks, Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Gennady.
I followed the KB article the best I could.
Errors from first compilation of exact example >>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi John,
Hope you had Merry Chrismas.
Sorry for hear this. The compiler error seems related to the C code and C++ code.(*.cpp). you may change
the cpp file to c file, and rebuild
or add mkl.h head files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ying, H --
*Thank You*
Some events kept me away a few days ... so my apologies for the slow reply.
The solution you provided works perfectly!
I will study the "manual" linking you used and I can now progress to learn more about the MKL. :)
A picture is worth a thousand words ... a "fully" working solution eliminates a thousand paths a novice might take when reading through documentation written by experts and who aim to cover every possible variation.
Again, my thanks!
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page