[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
 

konstruktion af et library



Hej igen igen

Nå, altså et lille meget konkret spørgsmål (tror jeg
nok).

Jeg har samlet en bunke rutiner i en håndfuld
cpp-filer og lagt dem i en mappe: ~/C++/SFlib

Nu er sagen at jeg ønsker at kalde disse funktioner
fra programmer i andre mapper. Jeg har kompileret alle
filerne i SFlib til objektfiler, og inkluderet deres
header i det program der skal kalde rutinerne.
Dette virker (forståeligt nok) ikke. Det hele
kompilerer ganske fint, men linkeren har et problem,
for den er ikke klar over, at den skal lede i en anden
mappe for at finde den relevante objektfil.

Hvad gør jeg (udover at kopiere hele møget ind i samme
mappe)?
Kan man lave en library-objektfil, eller skal man bare
give det rigtige flag til linkeren, spiller
/sbin/ldconfig en rolle??? 


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