Linking c++ and fortran
Peter_Hahne
Peter_Hahne@t-online.de
Tue Mar 7 13:40:00 GMT 2000
Thanks a lot, that works.
> Iôm trying to call a fortran routine from a c++ routine
> int sub1_();
You should probably have declare it as `extern "C"', to avoid C++ name
mangling.
----------------------------------------------------------------------
Dr.Peter Hahne, Zum Pitschgrund 7a, 64747 Breuberg Rai-Breitenbach,
Tel. +49 6165 912424, Fax +49 6165 912425, Mobile +49 171 5178749
More information about the Gcc-help
mailing list