[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



> 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


 
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] *