Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* CCC and FORT
@ 1999-10-01 17:14 hurlebau
  1999-10-01 17:16 ` Greg Lindahl
  0 siblings, 1 reply; 2+ messages in thread
From: hurlebau @ 1999-10-01 17:14 UTC (permalink / raw)
  To: axp-list


While trying to link C-code compiled with Compaq CCC and Fortran
Code compiled with Fortran FORT for Alpha I get undefined references, e.g.

:17: undefined reference to `for_write_seq_fmt'
:14: undefined reference to `for_open'
:25: undefined reference to `for_write_seq_fmt_xmit'
:25: undefined reference to `for_stop'

Is it a problem that it is old Fortran 77 code I compiled with FORT, 
or did I just forget one of the libraries that needs to be included?

Thanks
	Jochen.



9/27: 
   Personal homepage www.hurlebaus.de updated !
   Company homepage www.kfa-juelich.de/ibt/ferm/hurlebaus.html starting Oct. 5 !


 Come to Aachen, have a great time!

 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   M.Sc. JOCHEN HURLEBAUS                
   INSTITUTE FOR BIOTECHNOLOGY	   RESEARCH CENTER JUELICH, GERMANY
   ph: ++49-2461-61-3956	   fax: ++49-2461-61-3870

   jochen@hurlebaus.de
   j.hurlebaus@fz-juelich.de
   www.hurlebaus.de

   private:
   BAHNHOFSTRASSE 22		   52064 AACHEN, GERMANY
   ph: ++49-241-401-9414


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

* Re: CCC and FORT
  1999-10-01 17:14 CCC and FORT hurlebau
@ 1999-10-01 17:16 ` Greg Lindahl
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Lindahl @ 1999-10-01 17:16 UTC (permalink / raw)
  To: jochen; +Cc: axp-list

> While trying to link C-code compiled with Compaq CCC and Fortran
> Code compiled with Fortran FORT for Alpha I get undefined references, e.g.
> 
> :17: undefined reference to `for_write_seq_fmt'
> :14: undefined reference to `for_open'
> :25: undefined reference to `for_write_seq_fmt_xmit'
> :25: undefined reference to `for_stop'
> 
> Is it a problem that it is old Fortran 77 code I compiled with FORT, 
> or did I just forget one of the libraries that needs to be included?

Your problem is that you used ccc to link, not fort. If you link using
fort, everything will be OK. (So yes, it's a missing library. If you
really want to link with ccc, use fort -v to find out what the
libraries are.)

-- g


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

end of thread, other threads:[~1999-10-01 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-01 17:14 CCC and FORT hurlebau
1999-10-01 17:16 ` Greg Lindahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox