Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28439 Discussions

C main calling fortran doesn't setup Fortran runtime

Noel_B_
Novice
920 Views

I have a C main calling Fortran code that access both the input_unit, output_unit and the command line arguments (e.g. command_argument_count and get_command_argument).  Is there a function I can call from C to setup the Fortran runtime so the files and command line arguments are all properly initialized?  I can manually open the input_unit and output_unit and that seems to work okay but I don't seem to be able to initialize the command line arguments and I'd prefer to not have to write a custom solution if I can avoid it.

0 Kudos
1 Solution
5 Replies
Noel_B_
Novice
768 Views

Will these function also be available on Windows, we have this version?  

The Fortran compiler identification is Intel 2021.3.0.20210609

0 Kudos
Steve_Lionel
Honored Contributor III
757 Views

It's not needed on Windows.

0 Kudos
Noel_B_
Novice
747 Views
0 Kudos
Noel_B_
Novice
883 Views

Hi Ron,  That's just what I want, couldn't find it.  Really appreciate the help.  You rock!

0 Kudos
Reply