

Note: VS Menu commands will be used in the following instructions to accomplish Determine what external references (components for which you do not have the sourceĬode) you will need to add (e.g., libraries, modules, objects).Ĭreate a Lahey Fortran Project and VS Solution.ForĮxample, you might put all of your global procedures in a separate Project and all Determine if you want to add other Projects to better organize your Solution.Windows application, library, Fortran module(s), or DLL). Determine what kind of output your current build creates (i.e., Console application,.To the source code Project Item in which they are referenced.įor more information about Visual Studio Fortran integration features see Developing with Visual Studio. Include files are automatically detected and added as sub-items To modules or libraries that are needed for compiling and/or linking can also beĪdded to the Project. In a project as a group, or for each source code file individually. The Project allows you set compiler and linker options for all the source files When the source code is added to a Project, each source Projects contain all the information required to compile the source code into anĪpplication or library. Projects correspond to output types such as a library or an application. The Solution is the top-level container, and will include one or more "Projects". Visual Studio uses a basic structure to organize code called the "Solution". Migrating code into Visual Studio can be accomplished for all of these scenarios. Source can be in fixed or free format, or a combination. It might need to be linked with external libraries, objectĬode, or external modules. It might be built with a makefile, aīatch file, or Automake. The existing code can be one file, or many. You will be able to edit source code, set compiler and linker options,īuild, and debug your program all within Visual studio. You can easily use that code in the Microsoft Visual Studio IDE and you can takeĪdvantage of all the rapid development features of Visual Studio Fortran support. If you have existing source code for a program or library that builds with Lahey Fortran,
