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 (Peter_Hahne)
- Subject: Re: Linking c++ and fortran
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 07 Mar 2000 17:01:38 -0300
- Cc: gcc-help at gcc dot gnu dot org
- References: <12SNYt-1cotlIC@fwd00.sul.t-online.de>
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