You should note that lfortran is still very much under development and it may be that the old construct âINCLUDEâ is not supported. You may have better luck by either using a different compiler like gfortran or ifx, which do support the FORTRAN 77 style construct you have encountered or turning the include file into a module.
I think @Arjen already gave you the most probable reason why âINCLUDEâ doesnât seem to work (LFortranâs support of some older features is not yet on the same level of maturity as that of the more recent Fortran features).
You may wish to try substituting INCLUDE 'XFOIL.INC' by #include "XFOIL.INC", though, since LFortran does support C-style preprocessing with the --cpp compiler flag.
We support include, but didnât support it in fixed-form, which I now fixed.
We now support all Fortran features (except coarrays and length PDT), but they can still have bugs like the one you encountered. Modern Fortran in free-form works pretty well, some old F77 features might not be implemented yet (if so, please report it), also the fixed-form parser sometimes has bugs, but if you report them (ideally as a standalone minimal reproducible example), then weâll fix them quickly. Regarding compiling third-party codes, right now our status is expressed in the version information you printed above (Status: alpha (expected to fail on third-party codes)). So expected to fail, but it might not be difficult to fix all bugs to get it working, depending on the code. If you are interested, please report all bugs and weâll fix them all.
Some of these comments are a little confusing. INCLUDE was not an f77 feature. It was an extension of many f77 compilers, but it was not a standard feature. INCLUDE was part of f90, and remains standard even now with f2023 (in section 6.4).
Yes. Thatâs why we only supported it in free-form, because F77 codes in fixed-form wouldnât use it as much, but clearly they do. Anyway, itâs fixed in the latest LFortran main.