Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

Store Object Code in Static Libraries

Another way to organize source code used by several projects is to build a static library (for Windows, .lib and for Linux, .a) containing the object files for the reused procedures. You can create a static library by doing the following:

  • From the Microsoft Visual Studio integrated development environment (IDE), create and build a Fortran Static Library project type.

  • From the command line, use the ar command (on Linux) or the lib command (Windows).

After you have created a static library, you can use it as input to other types of Intel® Fortran Compiler projects.