- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to create a fortran dll with no dependencies. My understanding is that this would have to be a STATIC dll using the static switch. However, I am not sure where to put the switch
Is my understanding correct ?
If so where do I put the switch ?
Thanks in advance
John
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Almost. The switch you want is /libs:static and also /threads. If you are building the DLL in Visual Studio, you do not add these directly but rather go to the Fortran > Libraries property page and select the "Multithreaded" run-time library type.
/static in our Windows compiler means "set the default memory allocation of local variables to fixed locations" - not what you want. This is a common confusion for people who also use Linux compilers.
/static in our Windows compiler means "set the default memory allocation of local variables to fixed locations" - not what you want. This is a common confusion for people who also use Linux compilers.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page