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

Re: Leading underscore in reference label



You (Dale Scheetz) wrote:
> I've tracked down the problem I have been having building octave. The 
> source code for the package is in Fortran. The unsatisfied externals are 
> all f2c library calls. In the library causing the error the reference is 
> to do_fio, but in the f2c library the label is _do_fio, hense 
> unsatisfied. I remember Borland C++ going through a phase where the 
> leading underscore went from being automatic to requiring a compiler 
> option be set. So, I spent a fruitless half hour searching through the 
> info tree on gcc without seeing anything on the topic. Either f2c needs 
> to do this or there is an option for gcc. Since this package built ok for 
> the a.out release something has changed in the newer versions of either 
> gcc or f2c.
> Can anyone improve my knowledge on this? 

Sure. The libs with the leading underscores are a.out libraries.
You are trying to link with ELF libraries. which don't have a leading under
score in their names. There is a tool to convert the libraries from
a.out to ELF; HJ Lu has included it in his ELF announcement several times.

Mike.
-- 
  Miquel van    | Cistron Internet Services   --    Alphen aan den Rijn.
  Smoorenburg,  | mailto:info@cistron.nl          http://www.cistron.nl/
miquels@het.net | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)



Reply to: