- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using 18.0.0.124 {IA-32] with Microsoft Virtual Studio community edition 2015.
I need to know how to make a statically-linked Fortran program. I want to include all the necessary DSLLs in the output file.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may be able to make full static .exe by avoiding OpenMP/parallel and using /MT link switch or equivalent VS property. But my docs say that the 2018 ifort has gone back to making this the default (?).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Static linking is the default from the command line, but DLL linking is the default in Visual Studio projects. I don't think this has changed in several years. Two kinds of Fortran run-time support are DLL-only: OpenMP and coarrays.
In your Visual Studio project properties. select Fortran > Libraries > Use Run-Time Library > Multithreaded (/MT).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in addition to Steve's comment (Maybe it implies openMP) /Qparallel also makes it non-static linking
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page