Re: statische bibliothek einbinden

Alessandro Tomazic <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo Stefan.
Vielen Dank, mit dieser Information komme ich zurecht.
mfg
Alessandro 


Am Dienstag, 7. Dezember 2004 11:41 schrieb Stefan Hundhammer:
> On Monday 06 December 2004 23:15, Alessandro Tomazic wrote:
> > Bibliothek("/home/alpignolo/cpp/graphpartitioningproblems/src/qso
> >pt/qsopt.a ") in mein Projekt einbinden.
> > Habe folgendes getan:
> > im Automake-Manager unter Einstellungen -> Tab Bibliotheken
> > -l"/home/alpignolo/cpp/graphpartitioningproblems/src/qsopt/"
> > (abs. Pfad) hinzugefügt.
>
> Eigentlich sollte eine Lib mit "lib" beginnen - also etwa
> "libqsopt.a". Dann macht man das so:
>
> -L /home/alpignolo/cpp/graphpartitioningproblems/src/qsopt -l qsopt
>
> Das "-L" gibt den Pfad an, das "-l" den Lib-Namen - ohne führendes
> "lib" und ohne Extension (".a", ".so", ".so.*").
>
> Wenn Du den Namen qsopt.a behalten willst oder mußt, kannst Du
> nicht "-l" verwenden, dann linkst Du es einfach so dazu:
>
> 	ld main.o sonstwas.o /home/.../qsopt/qsopt.a
>
> Ich würde aber den anderen Weg (s.o.) empfehlen.
>
>
> CU
> --
> Stefan Hundhammer <[email protected]>                Penguin by
> conviction. YaST2 Development
> SUSE Linux Products GmbH
> Nuernberg, Germany

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.