- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I compile my code using Debug mode it is build successfully but when I try the Release mode I get linking error.
I am using some MKL functions:
1>RBUS.obj : error LNK2019: unresolved external symbol DGETRF referenced in function CLASS_STIFFNESS_mp_STIFFNESS_INVERSEK 1>RBUS.obj : error LNK2019: unresolved external symbol DGETRI referenced in function CLASS_STIFFNESS_mp_STIFFNESS_INVERSEK 1>RBUS.obj : error LNK2019: unresolved external symbol DPOSV referenced in function MDLSOLVER_mp_MKLSYMSOL 1>RBUS.obj : error LNK2019: unresolved external symbol DGESV referenced in function MDLSOLVER_mp_MKLSOLVE 1>RBUS.obj : error LNK2019: unresolved external symbol DGETRS referenced in function MDLSOLVER_mp_MKLSOLVEFACT 1>x64\Release\RBUS.exe : fatal error LNK1120: 5 unresolved externals
I could not figure out why this is happening.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I noticed that project properties for Debug mode and release mode are saved separately.
So I followed automatic linking procedure:
Project>[Project Name] Properties>Configuration Properties>Fortran>Libraries>Use Intel Math Kernel Library and select Parallel, Sequential, or Cluster as appropriate.
and this resolved the issue.
I hope someone will find this topic useful.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page