Micha Feigin <[EMAIL PROTECTED]> writes:
MF> How do I compile a program to use dinamic libraries (.so)?
By default any library you link against (with the -l switch to cc/ld)
is dynamically linked. So, if you need to use libm.so, the standard
math library, you'd just use a command something like
How do I compile a program to use dinamic libraries (.so)?
Thanx
[EMAIL PROTECTED]
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 b
How do I compile and use both static and dinamic libraries under linux?
Any good tutorial on the subject?
Thanx
[EMAIL PROTECTED]
Pete Poff <[EMAIL PROTECTED]> writes:
PP> Can someone tell me what file I need off of ftp.debian.org that
PP> contains all the .h files like, types.h, and time.h?
libc[56]-dev
PP> Can someone also tell me what command to use to see how much
PP> space I have left?
df
--
__
> Can someone tell me what file I need off of ftp.debian.org that
> contains all the .h files like, types.h, and time.h? I need the ones that
> work with the gcc compiler. I've downloaded gcc*.deb, gdb*c, and
> make*deb. Can someone also tell me what command to use to see how much
> space I
Can someone tell me what file I need off of ftp.debian.org that
contains all the .h files like, types.h, and time.h? I need the ones that
work with the gcc compiler. I've downloaded gcc*.deb, gdb*c, and
make*deb. Can someone also tell me what command to use to see how much
space I have left?
7 matches
Mail list logo