From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: Peter_Hahne@t-online.de (Peter_Hahne) Cc: gcc-help@gcc.gnu.org Subject: Re: Linking c++ and fortran Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: References: <12SNYt-1cotlIC@fwd00.sul.t-online.de> X-SW-Source: 2000-q1/msg00339.html Message-ID: <20000401000000.6luHMPb_AESG6PhZoWgotT9ttPSk48_ilo0hGhSLT2U@z> On Mar 7, 2000, Peter_Hahne@t-online.de (Peter_Hahne) wrote: > 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. -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me