Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Intel Fortran DLL callable from CVF

Deleted_U_Intel
Employee
504 Views
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.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
504 Views
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.
0 Kudos
Reply