- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
What source file extentions does ifort support? I know that gfortran supports source files with.f,.for,.fpp,.ftn,.F,.FOR,.FPP, and.FTNextensions as well as the.f90,.f95,.f03,.f08,.F90,.F95,.F03and.F08extensions. I ask only because it appears that I've run into a compile time error when using, for example, the .f08 extention.
Sepcifically, when I compile using ifort and the .f08 file extention I get the following error(s):
ifort -c -free -implicitnone -O3 -stand f08 hfrak.f08
ifort: warning #10145: no action performed for file 'hfrak.f08'
ifort -free -implicitnone -O3 -stand f08 -o hfrak.x hfrak.o
ifort: error #10236: File not found: 'hfrak.o'
ifort: command line error: no files specified; for help type "ifort -help"
make: *** [hfrak.x] Error 1
Obviously, the error #10236 is, well, obvious. However, the warning #10145 is not, even after a bit of a google search. However, if i simply rename the same exact source code as 'hfrak.f' and use the same compiler options ...
ifort -c -free -implicitnone -O3 -stand f08 hfrak.f
ifort -free -implicitnone -O3 -stand f08 -o hfrak.x hfrak.o
... everything works automagically.
Am I missing something here? It seems like a trival option ifort should support, especially given that it has a -stand f08 compiler option. But I don't know what the logic might be. From what I can find, ifort only seems to support the .f .f90 .F .FOR .for extentions. Any help / explination would be awesome.
Thanks!
- Balises:
- Intel® Fortran Compiler
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
/extfor:f03 /free
If you use makefiles, in addition to the above you will have to specify rules for compiling source files with these non-standard extensions.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Mecej4, I'll give that fix a go at some point. At this point, I need to finish coding, then worry about ifort support. I'll just gfortran until I'm ready to do so. But I am "make"ing my executable. Did you have a quick example of the specific rules you mention to support the non-standard exentions in a makefile? It'd be much appreciated. Thanks!
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
-- Marty
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
mkandes wrote:And indeed you are (wrong). The Fortran standard specifies absolutely nothing about file types or even source files in general. As far as the standard is concerned, source lines are provided to the "processor" (compiler) by fairies in the night. I plan to write a "Doctor Fortran" post on this, but our view is that the use of the file type to indicate use of some particular standard revision is misguided - and usually incorrect. .f90 was generally adopted to mean "free-form source" when Fortran 90 compilers came out, as a way of distinguishing from Fortran 77's only source form, fixed-form. It might have made sense at the time, but was a bad choice - you can write Fortran 2008 code in fixed-form source. We should have picked something like .ffr instead. But what is done is done. We're aware that some other compilers accept all manner of file types, but we're not going down the same wrong road.Thanks, Annalee. I do appreciate the quick response. I'm not going to lie. It's a bit annoying, especially since I believe the use of the .f95, .f03 and .f08 are all specified in the ISO/IEC Fortran 95/03/08 standards. But I could easily be wrong.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
1. Did Dr Fortran ever write a note on the point of file extensions
2. Down the wrong road, perhaps you meant the wrong rabbit hole as sometimes Fortran and this board reminds me of Alice or perhaps the Red Queen
3. I stumbled across set of Fortran routines for large numbers from a retired Prof out of Loyola -- trust the Jesuits to beat us there, they are designed for gfortran - whatever that is and use f95 extensions that I looked up on line and found Dr Fortran.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
@JohnNichols "Did Dr Fortran ever write a note on the point of file extensions"
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable