- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can one create a DLL using Intel Fortran that would havein it all the necessary runtime libraries so that it could be called using its entry point and the caller could be written in something else and would not know or care howthe DLLwas created?
Specifically: I need to create a DLL for anexe built using CVF 6.6B and MS C++ 12 (not .NET but that will come soon). I cannot control what compilers they use in the main exe. My codeis Fortranwith OpenMP which CVFdoes not have so I need other compiler than CVF. Also my code needs a C++ wrapper with try/catch so that it always exits gracefully, and the main exe is using threads (in some way) already. Can this be done?
As you can see I am new to DLLs. Thanks for any help and hints.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes - you can do this with most any compiler, really. For the Intel Fortran case, you will want to change the libraries setting to be "Multi-threaded" and not "DLL Multi-threaded". This will incorporate into the DLL all of the necessary support code. (Actually, the same advice holds for CVF.)
The alternative is to let the DLL build against the DLL libraries and include the appropriate run-time DLLs along with your DLL.

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