Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Create a DLL

$
0
0

Hello Steve,

I want to create DLL of my fortran.f90 code. This code contains main program and subroutines, the structure is as follows:

program ABC

..

..

end program ABC

subroutine XYZ

..

..

end subroutine XYZ

subroutine PQ

..

..

end subroutine PQ

I have learnt that, we can add the code '!DEC$ ATTRIBUTES DLLEXPORT :: [subroutine_name]' and create a DLL for subroutines, but how can I do for the main program ABC?

Also when I try to use the above code for subroutines and build my solution, DLLs don't get created in my working folder. I dont know where am I going wrong.

Could you please help me in solving this? Any information would be greatly appreciated! Thanks in advance.


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>