This is the mail archive of the gcc@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: Trailing underscores needed


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)

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