Linken gegen zwei statische Libs



Hallo,

ich habe ein Projekt das mit einem Makefile zwei statische Bibliotheken
(lib1.a und lib2.a) und ein Binary (myapp) erstellt. lib2 benutzt intern
auch noch dinge, die in lib1 vorhanden sind.

Die libs werden auch beide schön erstellt, wenn ich allerdings

gcc -o myqpp lib1.a lib2.a main.cpp

aufrufe, dann kommt die fehlermeldung das er wegen undefined references
nicht linken kann. Diese Referenzen sind genau die, die lib2 aus lib1
benötigt und im Prinzip auch in lib1 vorhanden sind. Kann man sowas denn
nicht machen? Ich dachte immer a-Files sind einfach gebundelte o-Files.

Danke für Hilfe
Andreas

.



Relevant Pages

  • Re: The Stowe Unitary System
    ... >> For the first time I have been able to define all fundamental constants ... >> in terms of basic medium parameters, ... >> Maxwell's aether. ... > No Lorentz violation ...
    (sci.physics)
  • Re: The Stowe Unitary System
    ... >> For the first time I have been able to define all fundamental constants ... >> in terms of basic medium parameters, ... >> Maxwell's aether. ... > No Lorentz violation ...
    (sci.astro)
  • Re: The Stowe Unitary System
    ... >> For the first time I have been able to define all fundamental constants ... >> in terms of basic medium parameters, ... >> Maxwell's aether. ... > No Lorentz violation ...
    (sci.physics.relativity)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: Berabeiten vor dem Erstellen
    ... die Datei ins Projekt aufzunehmen? ... > Projekt aufnehmen würde, das ist alles. ... Technich ist das sicherlich ... dann fällt mir als Alternative nur ein Projekt (etwa Makefile) ...
    (microsoft.public.de.vc)

Loading