[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] How to make shared objects(.so)
Hello
I think -soname flag is also of great help.
gcc -shared -soname libfoo *.o -o libfoo.so
Please check the syntax. I have done it som three months back.
Bye
Shridhar
Arun Sharma wrote:
> On Fri, Nov 12, 1999 at 12:31:00PM +0530, Ajit, Kumar (IE10) wrote:
> > Hi,
> > I want to know, in detail how to make shared objects in Linux.
>
> gcc -shared *.o -o libfoo.so
>
> Check:
>
> http://www.gnu.org/software/gcc/faq.html#picflag-needed
>
> for gcc related questions.
>
> Here's a great link for general programming tutorial on UNIX. Just
> ignore the FreeBSD specific parts and it's still a great Linux
> programming tutorial for newbies. It could answer at least 2 of the
> questions on LI today.
>
> http://www.freebsd.org/tutorials/programming-tools/index.html
>
> -Arun
>
> --------------------------------------------------------------------
> 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.
--------------------------------------------------------------------
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.