This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linking c++ and fortran
- To: Peter_Hahne at t-online dot de
- Subject: Re: Linking c++ and fortran
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 7 Mar 2000 20:50:52 +0100
- CC: gcc-help at gcc dot gnu dot org
- References: <12SNYt-1cotlIC@fwd00.sul.t-online.de>
> 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