User and Reference Guide for the Intel® Fortran Compiler 14.0

Using the IMSL Libraries from the Integrated Development Environment (Windows* OS)

To use the IMSL* libraries from the Microsoft Visual Studio* IDE:

  1. Add the IMSL Include and Library directories to the list of directories searched:

    1. In the Tools menu, choose Options.

    2. Click Intel Composer XE > Visual Fortran > Compilers.

    3. For Selected compiler, choose <Latest> .

    4. Select the Win32 (32-bit) platform..

    5. Click the list button (...) to the right of Libraries to open the list of libraries directories.

    6. In the Set Directory List window that opens, add the line $(VNI_DIR)imsl\fnl600\IA32\lib and click OK.

    7. Click the list button for Includes and, in the same manner, add the line $(VNI_DIR)imsl\fnl600\IA32\include\dll and click OK.
    8. Select the x64 (64-bit) platform and make the same changes as those in steps e through g, substituting Intel64 for IA32 in the line that is added.
    9. Click OK.
    You will need to reapply these changes if you install a new version of the compiler or use the installation option to keep an existing update installed when installing a new update.
  2. To pass IMSL libraries to the Linker, add one of the following lines to your main program or any convenient source file for your application. This needs to be specified only once per application.

    • INCLUDE 'link_fnl_static.h' (To use the static library form of the libraries)

    • INCLUDE 'link_fnl_shared.h' (To use the dynamic link library form of the libraries)

    • INCLUDE 'link_fnl_static_hpc.h' (To use the static library form of the libraries and the Intel® Math Kernel Library)

    • INCLUDE 'link_fnl_shared_hpc.h' (To use the dynamic link library form and the Intel® Math Kernel Library)

    • INCLUDE 'link_mpi.h' (To use the MPIC, the static library form of the libraries and the MPI* version of the error handler)

    • INCLUDE 'link_mpi_hpc.h' (To use MPI, the static library form of the libraries, the MPI version of the error handler and the Intel® Math Kernel Library)

    • INCLUDE 'link_mpis.h' (To use MPI, the static library form of the libraries and the scalar version of the error handler)

    • INCLUDE 'link_mpis_hpc.h' (To use MPI, the static library form of the libraries, the scalar version of the error handler and the Intel® Math Kernel Library)

    If you want to specify the libraries explicitly, select Project>Add Existing Item..., change Files of Type to All Files, browse to the IMSL Libraries folder, and add the appropriate libraries as explained in IMSL Include File and Library Naming Conventions and Redistribution.

  3. Ensure that the following project properties are set to ensure correct operation with the IMSL libraries:

    • Fortran>External Procedures>Calling Convention>Default

    • Fortran>External Procedures>Name Case Interpretation>Upper Case

    • Fortran>External Procedures>String Length Argument Passing>After All Arguments

    • Fortran>External Procedures>Append Underscores to External Names>No

    • Fortran>Floating Point>Floating Point Exception Handling>Produce NaN, signed infinities, and denormal results

    • Linker>System>Stack Reserve Amount>6000000 (this value may need to be adjusted upwards if stack overflow errors are seen)

    • Fortran>Language>Process OpenMP Directives>Generate Parallel Code


Submit feedback on this help topic