Question about libraries and object files!
From: Razvan (mihai11_at_mailcity.com)
Date: 08/31/03
- Next message: Mark A Framness: "KDevelop 3.0, Project & Linker Options."
- Previous message: Kevin Krammer: "Re: kdevelop -> my file won't link!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Aug 2003 08:13:38 -0700
HI!
As I read from the manual called "Developping software with GNU" a
library
is just a collection of object files archived with ar. The table of
symbols from all
object files will be reconstructed with the ranlib command.
My questions:
Is a non-shared library just an object file?
If I understood well 'ar' + 'ranlib' = merge of object files and the
result is probably just
an object file. If so, why the extension is changed from *.o to *.a ?
If they are not the same, then what is the difference between an
object file and a library ?
Secondly:
Why is 'ar' better for this job than 'tar' ? I suspect that the
reason is the 'ranlib' program
which can only understand the format of 'ar'. Is there any other
reason ?
Third and last:))
With 'ar' I can delete objects files from the library. If that
happens do I have to run
ranlib again on the library ?
Thanks to all gurus for looking at such a simple questions.
Best regards,
Razvan
- Next message: Mark A Framness: "KDevelop 3.0, Project & Linker Options."
- Previous message: Kevin Krammer: "Re: kdevelop -> my file won't link!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|