Compiling and using c librarys (.a and .so)
How do I compile and use both static and dinamic libraries under linux? Any good tutorial on the subject? Thanx [EMAIL PROTECTED]
Re: Compiling and using c librarys (.a and .so)
Micha Feigin ([EMAIL PROTECTED]) wrote: How do I compile and use both static and dinamic libraries under linux? Static: gcc -c foo.c gcc -c bar.c ar rv libfoo.a foo.o bar.o Dynamic: gcc -c -fpic foo.c gcc -c -fpic bar.c gcc -shared -Wl,-soname,libfoo.so.1 -o libfoo.so.1.0 foo.o