- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am working on a project which for historical reasons has a lot of Fortran code. What I was doing was basically calling these subroutines from C++, I'm working on a Linux machine with 2019.
Because of the way the Fortran code was written, I had no choice but to do the following job:
for (int i = 0; i < N; ++i) { int argc = update_argc_from_c(i); char** argv = update_argv_from_c(i); for_rtl_init_(&argc, argv); // call Fortran subroutines and functions, where // iargc(), getarg() were used for_rtl_finish_(); }
My problem was, I don't think the internal argc and argv variables got updated, at least not for argv, starting from the second loop...
(Yes, I checked the values in for__a_argv)
Any suggestions?
Thanks.
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page