Linking c++ and fortran

Peter_Hahne Peter_Hahne@t-online.de
Sat Apr 1 00:00:00 GMT 2000


Thanks a lot, that works

Martin v. Loewis schrieb:
> I´m trying to call a fortran routine from a c++ routine
> using gcc resp. g77/g++ , but dont get it to work.
> Can somebody tell me how to do it?

You need to declare the external function as extern "C".

Martin

----------------------------------------------------------------------
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