This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: use gcc to link gcc and g77


Martin Kahlert wrote:
> 
> In article <Pine.HPP.3.96.990818085847.5835A-100000@tau.math.wsu.edu>,
>         Andy Felt <felt@math.wsu.edu> writes:
> >
> > Hi folks-
> > I'm not sure where to post this.  If you have suggestions, please suggest
> > away.
> >
> > I have a mixed fortran/C program.  I compile the .c files with gcc, .f files
> > with g77, and link with gcc.  The linking is not working on (RedHat
> > 5.2) linux, and I think it's because I need to link to a fortran library,
> > but I don't know if one exists or what it's called.
> 
> If you insist on linking with gcc, append -lg2c (for newer egcs versions)
> or -lf2c (for older gcc's) to your link command.

Command `info -f g77 other inter' is supposed to give more information
about interoperation with C and C++ in a Red Hat system. 
-- 
J.Oksanen -- UHLA (University of Helsinki at Lahti)
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
G-
------END GEEK CODE BLOCK------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]