hi all,
i am just about new to linux and working on development tools for mobile
computing.
i was just wondering how to create and add my own library on the system.
it is something like this... i have some basic function calls etc which as
of now are in one source file called mylib.c . whenever i write a program
ie. test.c
which uses the functions from the file mylib.c ,
i first create a object file
$ cc -c mylib.c
then i compile test.c like this ,
$ cc -o test test.c mylib.o
what i would like to know is if there is a way to put the library mylib.c
into the /usr/lib/ directory where other libraries reside. then anyone
hooked to my computer could just specify something like
$ cc -o test test.c -lmy
i know there is something like "ar" which might help to achieve the above.
but then that's it. i couldn't find the man pages of much help.
thanks in advance
pankaj
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
("`-''-/").___..--''"`-._ Pankaj Kr. Rathore
`o_ o ) `-. ( ).`-.__.`) ATG,
(_Y_.)' ._ ) `._ `. ``-..-' Tata Infotech Ltd.
_..`--'_..-_/ /--'_.' .' 80 Feet Rd., Indiranagar
(il).-'' (li).' ((!.-' Bangalore 560008
091-80-5284681 Xtension 362
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Enthusiasm is at the bottom of all progress.
With it there is accomplishment. Without it there are only alibis...
- Henry Ford
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.