- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using MD runtime library (/LD Compiler switch) and msvc2005. I link my fortran libs to a C++ application.
Thank you very much.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
With VS2005, there is no longer a single-threaded static library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there no linker switch in Visual Fortran to include the whole intel lib into the exe or into another lib?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This works fine until you link in some C/C++ code that was built to use the DLL libraries, or some library different than the one you specified. Then the headaches start. This is not a Fortran issue - the C++ compiler actually generates different code for using DLL vs. static libraries - Fortran doesn't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This works fine until you link in some C/C++ code that was built to use the DLL libraries, or some library different than the one you specified. Then the headaches start. This is not a Fortran issue - the C++ compiler actually generates different code for using DLL vs. static libraries - Fortran doesn't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
BTW, I tried making the solution fresh from start again to make sure there's no other settings and it looks like the "Multithreaded" switch works now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
First off, I'm happy to see you are still doing this after all these years. You've been a great resource for me.
I'm using Visual Fortran Composer XE 2013 SP1 Update 2 and I want to make it the default that Fortran/Libraries/Runtime Library defaults to Multithreaded for Release mode instead of Multithreaded DLL. I thought that adding /libs:static to Tools/Options/Intel Compose XE/Visual Fortran/Compilers/Default options would do the trick, but every new project defaults to Multithreaded DLL.
It is really important that I make it the default because I've wasted my time and others' time when I send them an exe that needs the library. Did I miss an important step?
Marshall
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Marshall,
Thanks for the kind words.
What you did will cause any applications to be linked to the static libraries. It won't change the project settings, but the options you specify will override the project settings. You can verify this by looking at the build log. There isn't a way to change the project defaults so that you see it represented in the project properties. Please be aware that some libraries, such as OpenMP and coarray support, are provided in DLL form only.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page