Linking c++ and fortran

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue Mar 7 11:58:00 GMT 2000


> 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


More information about the Gcc-help mailing list