[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] how to implement shared objects??
| Say you have three files a1.c,a2.c,a3.c, which you want to put in shared
| libraries.
|
| $ gcc -c a1.c file://This will produce a1.o, object file
| $ gcc -c a2.c
| $ gcc -c a3.c
| $ ld -shared -soname mylib -o mylib.so a1.o a2.o a3.o
Excellent explanation. I can also use that
regards
Aditya
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.