- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone in the forum,
i have a big problem and i do not know how to do two things, so if anyone could help me...
I am working with a project created with the fortran developer Studio 4.0, a bit old. The point is that i was trying to create a dynamic link library to linux. This program let me to create autoamtically a dll for win. I am trying to copy all the for files to linux and use the command to get the object files:
f77 -c *.for
but i do not know if the calls from one subroutine to another in different files is a problem.
Besides getting the object files, i do not how to create a dynamic linked library in linux from the object files.
Please if any idea, let me now,
Many thankx.
i have a big problem and i do not know how to do two things, so if anyone could help me...
I am working with a project created with the fortran developer Studio 4.0, a bit old. The point is that i was trying to create a dynamic link library to linux. This program let me to create autoamtically a dll for win. I am trying to copy all the for files to linux and use the command to get the object files:
f77 -c *.for
but i do not know if the calls from one subroutine to another in different files is a problem.
Besides getting the object files, i do not how to create a dynamic linked library in linux from the object files.
Please if any idea, let me now,
Many thankx.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do I understand correctly that you are not using Intel Fortran? On Linux, Shared Objects (.so) are the equivalent of DLLs. The command you gave compiles to .o object files but does not link. Please see the documentation for your compiler to see how to build a .so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks fo the reply
Does exist any documentation of how to build an so (besides the tupical Google)?
Does exist any documentation of how to build an so (besides the tupical Google)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It may vary by compiler. I don't know which compiler you're using. If you were using Intel's compiler, you would add -shared (and remove -c).
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