NOTE: For starters I renamed main_as_program.f and main_as_subroutine.f to main_as_program.c and main_as_subroutine.c so I can upload files.
My object is to access the common block variables zzm_mmm, mmm and filename from my C++ program (main.cpp). To do this I compile main_as_subroutine.f and create a library file that I use to link with my C++ program. At issue. The variables zzm_mmm, mmm and filename are not reflected in an objdump of the library file (see how_to_run.txt). How do I link in and access the common block variables from C++?
NOTE: main_as_program.f is shown for reference and reflects the fortran code in its entirety.
c special common block
integer tx_input, ptype, lx, mw, mmm ,zzm_mmm
character*128 filename, filename1
common/input_int/tx_input, ptype, lx, mw, mmm ,zzm_mmm