- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When using DET fucntion in programm, there are link errors as follows:
matrix.obj : error LNK2001: unresolved external symbol __imp__MPIPRIV main.obj : error LNK2001: unresolved external symbol __imp__MPIPRIV Debug/Crrr.exe : fatal error LNK1120: 1 unresolved externals
All setup is correct becasue other IMSL subroutines can be used. who knows it ?
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is due to a compiler bug. Until it is fixed, you can solve it by adding the following code to your application:
! Add this source to your project to correct the problem
! that, for a Debug build for certain projects using the
! IMSL Fortran libraries, the linker complains of an
! unresolved external symbol __imp__MPIPRIV
BLOCK DATA MPIPRIV_DEF
COMMON /MPIPRIV/ DUMMY
!DEC$ ATTRIBUTES ALIAS:"__imp__MPIPRIV" :: /MPIPRIV/
END BLOCK DATA MPIPRIV_DEF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes . it is ok. thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
I get the above error on more than one file. The extension is *.f so the first complain is that when I add the sample code, the compiler does not recognize "BLOCK DATA" section. After changing the extension to *.f90, the compiler does not complain, but the linker still do. After several tries, I found that Full Debug Information Format is responsible for this. If I change to Line numbers only or to none, the linker does not complain. How can I get Full Debug Info and the linker happy? I am not a skilled Fortran coder, so please be more verbose.
Best regards,
Calin
I get the above error on more than one file. The extension is *.f so the first complain is that when I add the sample code, the compiler does not recognize "BLOCK DATA" section. After changing the extension to *.f90, the compiler does not complain, but the linker still do. After several tries, I found that Full Debug Information Format is responsible for this. If I change to Line numbers only or to none, the linker does not complain. How can I get Full Debug Info and the linker happy? I am not a skilled Fortran coder, so please be more verbose.
Best regards,
Calin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We fixed this problem a couple of updates ago. If you're using the current 9.0.030, you should not see it. The source I posted is free-form should be in a .f90 file.

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