[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: CCC and FORT



> 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []