- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I have some code from back in the days which I want to compile and add to a library, but I just can't get it to work. I have sweeped the internet rigorously, without getting wiser in this matter. So now I reach out to you with great hope, dear fortran friends.
In greater detail, I have 21 .f-files written for Fortran77 which I compile and add to a library, libsirf.a, with the command 'ar cr libsirf.a *.o'. The library is then updated with 'ar -t libsirf.a'. Everything seems to be alright at a first glance, but when I look closer with 'nm -a libsirf.a', I detect some undefined symbols. Symbols which I claim, in my most humble fashion, shouldn't be undefined. The files are run with 'ifort -c -O3 -lowercase -nus -I/media/Samstore/Compute/Data/SIR/src/ -module /. /media/Samstore/Compute/Data/SIR/src/*.f'. (Naturally, this is done prior to the ar commands.)
So my questions are; is Intel Fortran 11.0 fully complatible with fortran77? Is there certain flags one should be aware of?
The files in question are enclosed in this message.
Any help would be vastly appriciated.
In advance, thank you.
Jonas.
I have some code from back in the days which I want to compile and add to a library, but I just can't get it to work. I have sweeped the internet rigorously, without getting wiser in this matter. So now I reach out to you with great hope, dear fortran friends.
In greater detail, I have 21 .f-files written for Fortran77 which I compile and add to a library, libsirf.a, with the command 'ar cr libsirf.a *.o'. The library is then updated with 'ar -t libsirf.a'. Everything seems to be alright at a first glance, but when I look closer with 'nm -a libsirf.a', I detect some undefined symbols. Symbols which I claim, in my most humble fashion, shouldn't be undefined. The files are run with 'ifort -c -O3 -lowercase -nus -I/media/Samstore/Compute/Data/SIR/src/ -module /. /media/Samstore/Compute/Data/SIR/src/*.f'. (Naturally, this is done prior to the ar commands.)
So my questions are; is Intel Fortran 11.0 fully complatible with fortran77? Is there certain flags one should be aware of?
The files in question are enclosed in this message.
Any help would be vastly appriciated.
In advance, thank you.
Jonas.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, Intel Fortran fully supports Fortran 77. What is the complete and exact text of the error you get when linking?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Yes, Intel Fortran fully supports Fortran 77. What is the complete and exact text of the error you get when linking?
Anyway, I aquired a new library, which most likely fixed the problem I had. But as usual, as a novice as myself, new problems have arisen.
I will post when the problems are more defined.
Thank you again.
Jonas.
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