From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: Peter_Hahne@t-online.de Cc: gcc-help@gcc.gnu.org Subject: Re: Linking c++ and fortran Date: Tue, 07 Mar 2000 11:58:00 -0000 Message-id: <200003071950.UAA00932@loewis.home.cs.tu-berlin.de> References: <12SNYt-1cotlIC@fwd00.sul.t-online.de> X-SW-Source: 2000-03/msg00028.html > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: Peter_Hahne@t-online.de Cc: gcc-help@gcc.gnu.org Subject: Re: Linking c++ and fortran Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <200003071950.UAA00932@loewis.home.cs.tu-berlin.de> References: <12SNYt-1cotlIC@fwd00.sul.t-online.de> X-SW-Source: 2000-q1/msg00338.html Message-ID: <20000401000000.HjUloVQA1On3krjHVFF-2eJV4n8VR1RUT3Y31Xf67dk@z> > 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