Skip to content

Instantly share code, notes, and snippets.

@v1kko
Last active February 2, 2022 12:46
Show Gist options
  • Save v1kko/9972137789213bf35af19da93d4daf6b to your computer and use it in GitHub Desktop.
Save v1kko/9972137789213bf35af19da93d4daf6b to your computer and use it in GitHub Desktop.
code_10
# create hello_world_mod.mod and hello_world.o
> gfortran -c -fimplicit-none -Werror=implicit-interface hello_world.f90
# create main.o
> gfortran -c -fimplicit-none -Werror=implicit-interface main.f90
# link and create hello_world binary
> gfortran main.o hello_world.o -o hello_world
# Execute the program
> ./hello_world
 Hello World: You there
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment