I've got a c++ library I would like to access from Fortran. I created a simple wrapper in C++ for one of the classes I would like to access and buried the class/function access in there. I've got it linked up OK (had to link through C++ compiler) and am able to access the necessary class/function, returning the appropriate information. The problem is this: when the Fortran program hits the end statement, I am getting:
"** Address Error **
End of diagnostics"
error. I've run this thing through gdb and have determined the error is coming from std::ios_base::_M_call_callbacks(...).
I have commented out all references to my C++ routines yet I get the same error, without calling any C++ stuff. Looks like some generic C++ shutdown stuff is being called.
Is there anything I have to do to get the C++ stuff to behave correctly with Fortran?? I'm linking through the C++ compiler so all the default libraries are known (i get the Fortran default libraries through the -v option). Should I be doing this some other way??
I'm running Mandrake 9.1 and just downloaded the latest and greatest Intel Fortran compiler.
James A. Galbraith