This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking c++ and fortran


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]