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

C main calling fortran doesn't setup Fortran runtime

Noel_B_
Beginner
545 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_
Beginner
393 Views

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

The Fortran compiler identification is Intel 2021.3.0.20210609

Steve_Lionel
Black Belt Retired Employee
382 Views

It's not needed on Windows.

Noel_B_
Beginner
508 Views

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

Reply