This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problems linking FORTRAN to C++
- From: Gustavo Bevilacqua Leal <gustavob at cetuc dot puc-rio dot br>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 07 Jul 2003 15:51:21 -0300
- Subject: Problems linking FORTRAN to C++
From Gustavo,
I am having to link a FORTRAN source code with C++. I did
everything recommend at the manual but nothing worked. For example
as I included the file g2c.h the compiler said there is no type __g77_integer,
which is true. I tried to use the cfortran wrapper (see
http://www-zeus.desy.de/~burow/cfortran/), but the linker, gcc, couldn´t
link the
C/FORTRAN code with the FORTRAN builtins, which are defined in the library
libg2c.a.
I am using the cygwin enviroment, the version of the compiler is 3.2 20020927.
What do I have to do, in order to link both codes?
Thanks,
Gustavo.