PDA

View Full Version : Computing the 2-norm



cwkuo
11-17-2005, 06:36 PM
Hi all,

I'm new to the IMSL Fortran library, so please bear with me.
The following is a simple test program for calling the norm subroutine:



program test_norm

include 'link_f90_static.h'
use norm_int

real(KIND(1.0D0)) :: A(3,3), v(3)

DATA A/1., 2., 3., &
4., 5., 6., &
7., 8., 9. /

DATA v/1., 2., 3./

write(*, *)'the 2-norm of v is ', norm(v)

end program test_norm


When I compile the program, I keep gettig the follwing error message:


Compiling with Intel Fortran 9.0...
test_norm.F90
Linking...
test_norm.obj : error LNK2001: unresolved external symbol __imp__MPIPRIV
Debug/test_norm.exe : fatal error LNK1120: 1 unresolved externals



Can anyone help me?

brian
11-18-2005, 12:58 PM
Hello cwkuo,

I'm not sure what platform your on so in case this does not resolve the issue, you may want to identify it.

link_f90_static.h specifies static libraries and indicates they are located in the LIB variable. On Windows this would look like:

!dec$objcomment lib:'imsl.lib'
!dec$objcomment lib:'imslscalar.lib'
!dec$objcomment lib:'imslblas.lib'
!dec$objcomment lib:'imsls_err.lib'

The environment variable may not have been set during install. Try linking in these files explicitly. Also, you can use the cttsetup.bat (or csh/sh) to add the variables to the current environment (they are transient with this approach).

Hope this helps,

brian

cwkuo
11-18-2005, 07:07 PM
Hi,

Thanks. I should have been more clear with description. My program was run on a Windows XP system inside the Visual Studio .Net 2003 with Visual Fortran compiler.

Unregistered
01-04-2006, 08:06 AM
Look here for the answer: http://softwareforums.intel.com/ids/board/message?board.id=5&message.id=14657

brian
01-04-2006, 11:43 AM
Hello cwkuo,

My apologies, I was using the Intel 8.0 compiler and could not reproduce this. I've since migrated to version 9.0 and confirmed your issue. The link above seems to provide an effective work around.

--brian