From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter_Hahne@t-online.de (Peter_Hahne) To: oliva@lsd.ic.unicamp.br Cc: gcc-help@gcc.gnu.org Subject: Re: Linking c++ and fortran Date: Tue, 07 Mar 2000 13:40:00 -0000 Message-id: <12SRhY-1CU3LkC@fwd07.sul.t-online.de> References: <12SNYt-1cotlIC@fwd00.sul.t-online.de> X-SW-Source: 2000-03/msg00031.html Thanks a lot, that works. > I´m trying to call a fortran routine from a c++ routine > int sub1_(); You should probably have declare it as `extern "C"', to avoid C++ name mangling. ---------------------------------------------------------------------- Dr.Peter Hahne, Zum Pitschgrund 7a, 64747 Breuberg Rai-Breitenbach, Tel. +49 6165 912424, Fax +49 6165 912425, Mobile +49 171 5178749 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter_Hahne@t-online.de (Peter_Hahne) To: oliva@lsd.ic.unicamp.br Cc: gcc-help@gcc.gnu.org Subject: Re: Linking c++ and fortran Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <12SRhY-1CU3LkC@fwd07.sul.t-online.de> References: <12SNYt-1cotlIC@fwd00.sul.t-online.de> X-SW-Source: 2000-q1/msg00341.html Message-ID: <20000401000000.4KAnfVhRFsKjOckIFblKTI64PYfGgxNzilOwAPSa5KQ@z> Thanks a lot, that works. > I´m trying to call a fortran routine from a c++ routine > int sub1_(); You should probably have declare it as `extern "C"', to avoid C++ name mangling. ---------------------------------------------------------------------- Dr.Peter Hahne, Zum Pitschgrund 7a, 64747 Breuberg Rai-Breitenbach, Tel. +49 6165 912424, Fax +49 6165 912425, Mobile +49 171 5178749