public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Trailing underscores needed
@ 2000-09-20 13:59 Drcadmando
  2000-09-20 15:20 ` Toon Moene
  0 siblings, 1 reply; 2+ messages in thread
From: Drcadmando @ 2000-09-20 13:59 UTC (permalink / raw)
  To: gcc

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

Mostly, I would appreciate a reference to documentation which explains this 
specific problem.

Thanx,

Marvin E Walden

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Trailing underscores needed
  2000-09-20 13:59 Trailing underscores needed Drcadmando
@ 2000-09-20 15:20 ` Toon Moene
  0 siblings, 0 replies; 2+ messages in thread
From: Toon Moene @ 2000-09-20 15:20 UTC (permalink / raw)
  To: Drcadmando; +Cc: gcc

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-09-20 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-20 13:59 Trailing underscores needed Drcadmando
2000-09-20 15:20 ` Toon Moene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).