- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to compile some f90 code and link it to a f77 compiled library - how do I do this?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By "f77" do you mean g77 or some Fortran compiler other than Intel Fortran? If so, you probably can't and should recompile the sources in Intel Fortran. If it's just code that was written to the F77 standard, as long as it is compiled by Intel Fortran, there's no problem. Anything standard in F77 is standard in F90 and is accepted by the Intel compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
... I have a set of libraries written in fortran 77 which I have compiled using ifort. I now want to link them to some code written in f90 and compiled again using ifort. Do I have to add a special incantation when I link? Sorry for what is probably a stupid question - I am new to this!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, now I see. No, there's nothing special to do. Your "f77" code is also f90 code. As long as you compile it all with ifort, you'll be fine.
It is a common misconception that f77 and f90 are distinct languages. Everything in f77 is in f90. Fixed and free form are both standard in f90 and you can write f90/95/2003 code in fixed-form.
It is a common misconception that f77 and f90 are distinct languages. Everything in f77 is in f90. Fixed and free form are both standard in f90 and you can write f90/95/2003 code in fixed-form.
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