You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the website is a heading "Platform Agnostic C / C++ / FORTRAN Tooling". So after confirming that my hello.c worked, I tried hello.f, because I have a Fortran program I distribute to users and it would be easier not to have ask what kind of computer they have. However the Fortran version didn't work. Instead I got messages about these 6 missing routines:
The command line was exactly the same as in the web example, except that hello.c is hello.f. I did try adding /usr/local/lib/gcc11/libgfortran.a before and after cosmopolitan.a. I just got a much longer list of unresolved routines. Also changed gcc to gfortran, but no change.
Can APE be used with Fortran? If so, how? Would a new cosmopolitan.a be needed, or is just a matter of getting the linking correct?
(Note added in edit: it looks like asterisks in my write statement don't get into the message as presented. I don't know why).
Daniel Feenberg
NBER
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
At the website is a heading "Platform Agnostic C / C++ / FORTRAN Tooling". So after confirming that my hello.c worked, I tried hello.f, because I have a Fortran program I distribute to users and it would be easier not to have ask what kind of computer they have. However the Fortran version didn't work. Instead I got messages about these 6 missing routines:
_gfortran_st_write
_gfortran_transfer_character_write
_gfortran_st_write_done
_gfortran_stop_string
_gfortran_set_args
_gfortran_set_options
The Fortan source for hello.f was just:
write(,) 'Hello,world'
stop
end
The command line was exactly the same as in the web example, except that hello.c is hello.f. I did try adding /usr/local/lib/gcc11/libgfortran.a before and after cosmopolitan.a. I just got a much longer list of unresolved routines. Also changed gcc to gfortran, but no change.
Can APE be used with Fortran? If so, how? Would a new cosmopolitan.a be needed, or is just a matter of getting the linking correct?
(Note added in edit: it looks like asterisks in my write statement don't get into the message as presented. I don't know why).
Daniel Feenberg
NBER
Beta Was this translation helpful? Give feedback.
All reactions