Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Help IMSL

mingan
Beginner
563 Views
I am a former user of CVF and now transer to IVF.

I got a lot of troubles with IVF for installation, finally, I made it, but still I could not use IMSL,
here are the error information, can anyone tell me what is the problem.

Thanks

1>------ Build started: Project: Console17, Configuration: Debug Win32 ------
1>Compiling with Intel Fortran 9.1 C:Program FilesIntelCompilerFortran9.1IA32...
1>Console17.f90
1>Linking...
1>Fatal error cannot open "ifconsol"
1>Link: error: problem during multi-file optimization compilation (code 1)
1>Link: error: problem during multi-file optimization compilation (code 1)
1>
1>Build log written to "file://\userdata.niehs.nih.govyangm2My DocumentsVisual Studio 2005ProjectsConsole17Console17DebugBuildLog.htm"
1>Console17 build



! Console17.f90
!
! FUNCTIONS:
! Console17 - Entry point of console application.
!

!****************************************************************************
!
! PROGRAM: Console17
!
! PURPOSE: Entry point for the console application.
!
!****************************************************************************
program Console17

!INCLUDE 'link_f90_static.h'
INCLUDE 'link_f90_dll.h'

implicit none

integer, parameter:: n=10000, k=5000
real,dimension(n)::x
real,dimension(k,2):: res

integer::i, j
real:: a=3.0, std=2.0, mux, stdx, t1, t2, k0, k1
call rnset(0)



write(*,*) " integer division 11/7 is ", 11/7
write(*,*) " conversion of 11/7 is " , 11.0/7
do i =1, k

call rnnor(n,x)
call sscal(n, std, x,1)
call sadd(n, a, x,1)

res(i,1)= sum(x)/real(n)
res(i,2)=sqrt(sum(x**2)/real(n)-res(i,1)**2)

end do

mux=sum( res(1:k,1) )/real(k)

stdx=sum( res(1:k,2) )/real(k)


end program Console17

0 Kudos
2 Replies
Steven_L_Intel1
Employee
563 Views
It seems as if the library paths were not set up properly for you. Select Tools..Options..Intel Fortran..general. Click on the button to the right of Libraries. The list should resemble this:

$(IFORTInstallDir)Lib
$(VCInstallDir)lib
$(VCInstallDir)atlmfclib
$(VCInstallDir)atlmfclibi386
$(VCInstallDir)PlatformSDKlib
$(FrameworkSDKDir)lib
$(VSInstallDir)
$(VSInstallDir)lib
C:Program FilesMicrosoft Visual Studio 8VCATLMFCLIB
C:Program FilesMicrosoft Visual Studio 8VCLIB
C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKlib
C:Program FilesMicrosoft Visual Studio 8SDKv2.0lib
C:Program FilesVNICTT6.0LIBIA32

The most important are the lines which start with $ and the last one. You might not have the (FrameworkSDKDir) line.

Also for the Include directories it should look like this:

$(IFORTInstallDir)Include
$(VCInstallDir)include
$(VCInstallDir)atlmfcinclude
$(VCInstallDir)PlatformSDKinclude
$(FrameworkSDKDir)include
C:Program FilesMicrosoft Visual Studio 8VCATLMFCINCLUDE
C:Program FilesMicrosoft Visual Studio 8VCINCLUDE
C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKinclude
C:Program FilesMicrosoft Visual Studio 8SDKv2.0include
C:Program FilesVNICTT6.0INCLUDEIA32

If you have VS.NET 2002 or 2003, the "Visual Studio 8" will be different.

Please read the section on using IMSL in the Building Applications manual as well as the "Porting from CVF" whitepaper.

Let me know if this helps.
0 Kudos
drgfthomas
Beginner
563 Views

Additionally, if one wants to do mixed VC++ (native)-Fortran programming, Tools/Options/Projects/VC++ Directories/Library files the entries

C:Program FilesIntelCompilerFortran9.1IA32Lib

C:Program FilesVNICTT6.0LIBIA32

are required. You can call IMSL from VC++ provided the IMSL is that which comes with IVF.

0 Kudos
Reply