Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello World for Windows #54

Open
Beliavsky opened this issue Mar 29, 2022 · 2 comments
Open

Hello World for Windows #54

Beliavsky opened this issue Mar 29, 2022 · 2 comments
Labels
section: learn Relevant for the learn section on the webpage

Comments

@Beliavsky
Copy link
Contributor

The Hello World page mentions how to install gfortran on Windows but is otherwise oriented towards Unix-like operating systems. If it is supposed to be equally usable for someone on Windows, here are some suggestions:

It says

To check if you have gfortran setup correctly, open a terminal and run the following command

Windows Terminal now starts out with Powershell. I think Fortran compilers and batch files were made to be used with CMD, which you can get by typing cmd at a Powershell prompt.

It says to compile with

gfortran hello.f90 -o hello

but on Windows there is a convention to give executable files a .exe suffix.

It says to use

$> ./hello

to run the executable, but in Windows you would run .\hello.exe or probably just hello.exe.

@awvwgk awvwgk added the learn label Mar 29, 2022
@awvwgk awvwgk transferred this issue from fortran-lang/fortran-lang.org Aug 19, 2022
@awvwgk awvwgk added section: learn Relevant for the learn section on the webpage and removed learn labels Aug 19, 2022
@Adobe-Android
Copy link
Contributor

Assuming your compiler of choice adds the correct locations to your system PATH, this is a non-issue. I went through the hello world yesterday on Windows and had no such issue in PowerShell. The part that took me a moment was trying out a couple IDEs and getting them configured to build, run, and debug.

@harshit4311
Copy link

I would love working on this issue! Could you please assign it to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
section: learn Relevant for the learn section on the webpage
Projects
None yet
Development

No branches or pull requests

4 participants