This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Trailing underscores needed
- To: Drcadmando at aol dot com
- Subject: Re: Trailing underscores needed
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Thu, 21 Sep 2000 00:18:40 +0200
- CC: gcc at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <35.a6fd9e4.26fa7ecc@aol.com>
Drcadmando@aol.com wrote:
> I have a project with lots of .c and .f files, which builds OK in UNIX. I am
> new to g77.
>
> My make does all compiles, then bombs with lots of undefined references from
> .f SUBROUTINEs. I think I need to force trailing underscores, but I don't
> know how. Maybe I need a different library. The undefined references are:
> s_rdue
> do_uio
> e_rdue
> s_wdue
> e_wdue
> s_wsle
> do_lio
> e_wsle
> s_stop
> s_copy
> f_open
> f_clos
> s_paus
> d_mod
> s_wsfi
> do_fio
> e_wsfi
> s_wsfe
> e_wsfe
These are all routines from the Fortran run time library (libg2c.a).
Are you using g77 for linking ? (or gcc - in that case you have to
specify the location of libg2c.a)
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)