Re: static GtkAda

From: Florian Weimer (fw_at_deneb.enyo.de)
Date: 08/25/04


Date: Wed, 25 Aug 2004 22:19:22 +0200


* Adrian Knoth:

> And there are other things I didn't know: it's not sufficient to
> include all the static libraries it's also important in which *order*
> you mention them. This order above works, if you move some of
> the libs below (let's say libz) to the beginning of the list the
> linking process fails. Until now I don't know why. Someone else?

Libraries are read in the order specified on the command line, and
object files contained in them are only kept if they contain a
previously undefined symbol, AFAIK. This means that undefined
references in libraries listed later in the command line cannot be
resolved by object files that have already been skipped.

You should really use libtool's machinery, it deals with all those
corner cases.



Relevant Pages

  • Re: linkage problems when building a VC7.1 project from the command line
    ... at least one problem seems to be that your link command does not take object files as inputs. ... If I look at a random link command on my system, it contains a list of object files to link together. ... Creating temporary file "c:\timer\Debug\RSP000007.rsp" with contents ... What are these .rsp (linker response) files and how may I re-create them on the command line? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: How to list objects files in an executable
    ... try runnng the nm command (the name nm stands for "name" - since it ... all the object files linked into this executable. ... source files that were used. ... This is a signature virus. ...
    (comp.unix.programmer)
  • Re: Modules and ld command
    ... > an initialization function, I don't think the final module can have ... > multiple initialization functions. ... > multiple object files with ld, but those object files wouldn't be ... I would have thought that ld command above would have allow to avoid ...
    (comp.os.linux.development.system)
  • problems applying property pages in VC2005
    ... I'm having some problems applying the property pages ... to a project the project does'nt generate any object files. ... Creating temporary file ... Creating command line "link.exe ...
    (microsoft.public.vc.ide_general)
  • Re: assembly & C linking woes....
    ... : object files. ... : Linker Warning: DOSSEG directive ignored in module asm.asm ... : Linker Error: Undefined symbol _ASMClsV in module main.c ... PUBLIC ASMClsV ...
    (comp.lang.asm.x86)