[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] konstruktion af et library



Sune Fischer wrote:
> 
> > Man kan samle alle objektfilerne i et statisk
> > library
> > (.a) med `ar'. På linux skal man derefter køre
> > ranlib
> > på det for at få genereret et index.
> >
> > ar cru SFlib.a *.o
> > ranlib SFlib.a (ar -s gør vist det samme)
> >
> > Dernæste kan man flytte SFlib.a til f.eks.
> > /usr/local/lib så
> > den bliver fundet automatisk når man linker med
> > -lSF.
> > Alternativt kan man lade den ligge og linke med
> > -L/path/til/SFlib -lSF
> 
> De to første skridt virker uden problemer, men
> linkeren brokker sig ved -lSF flaget, den siger den
> ikke kan finde en fil eller mappe ved det navn.
> Hvad er -lSF, er det en fil jeg skal "bygge"?
> Jeg har naturligvis prøvet variationer såsom -lSFlib
> og -lSFlib.a de virker heller ikke.
> 
> Sune
> 
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com

Prøv lige at se hvad der sker efter du har kørt ldconfig ?

-- 
Venlig hilsen / Best Regards

--------------------------------
Bernino Lind
iSolve ApS
          sslug@sslug
--------------------------------
Rømersgade 7 kld
DK-1362 Copenhagen K
Denmark
[+45]  33 32 59 78
www.iSolve.dk
--------------------------------


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *