Difference between revisions of "Category:How to - Fortran"
From Gumstix User Wiki
(Created page with "GCC contains gfortran as part of it(usually) but the library does not get pulled in. or you can install gfortran separately. To ensure its installed (or include the packages in ...") |
(No difference)
|
Revision as of 22:29, 13 July 2011
GCC contains gfortran as part of it(usually) but the library does not get pulled in. or you can install gfortran separately.
To ensure its installed (or include the packages in your image recipe)
opkg update opkg install gfortran opkg install gfortran-symlinks opkg install libgfortran opkg install libgfortran-dev
Then
vim hello.f90
! hello.f90 program hello implicit none print*, " " print*, "Hello World!" print*, " " end
To compile
user@overo:~# gfortran -o hellof hello.f90
to run
user@overo:~# ./hellof Hello Fortran World! user@overo:~#
This category currently contains no pages or media.