Mail Archives: djgpp/2001/06/08/04:39:12
"Orlando P. Hevia" wrote:
>
> I wrote:
>
> > I am using ar to generate a library with a big .o file
> > (640kB).
>
> > The object is generated by gcc, and it works properly
> > when it is linked to the binary.
>
> > The .c file is obtained with f2cx from a FORTRAN file,
> > because g77 cannot compile too big COMMONs. The FORTRAN
> > file is a block data (no sentences in it).
>
> A block data is never called, and if the object is in a
> library, it is never linked.
>
It may not be 'called', but since you use it, the linker would
pull it in. One possibility is that the name of the exported
symbol is the same as a symbol in some other library that is
checked first. What do 'nm object.o' and 'nm lib-with-object.a'
print?
--
Tim Van Holder - Anubex N.V.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This message was posted using plain text. I do not endorse any
products or services that may be hyperlinked to this message.
- Raw text -