I want to create DLL of my fortran.f90 code. This code contains main program and subroutines, the structure is as follows:
end program ABC
end subroutine XYZ
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.