1 year ago

#367107

test-img

remonae

how to run subprogram from another file in fortran using vscode

I have 2 Fortran source files, the function as the subprogram and the main code for running the program, how can I call the function in the main program?

if using gfortran in Linux we can use

gfortran mainprogram.f90 subprogram.f90

If I use Microsoft Visual Studio how can I write the code?

windows

visual-studio

build

fortran

intel-fortran

0 Answers

Your Answer

Accepted video resources