Hi,
In my lib dir, I have things like
libeventpath.a and libeventpath.so
When I try to compile and link to libeventpath.a I get the following error:
Code:
/usr/bin/ld: attempted static link of dynamic object `/global/homes/h/habb/jmp/lib/libevpath.so'
The command I'm using to compile is:
Code:
CC -DHAVE_CONFIG -I. -I/global/homes/h/habb/jmp/include -g -O0 -c -o manager.o manager.c
/bin/sh ./libtool --tag=CC --mode=link CC -g -O0 -o manager manager.o -L/global/homes/h/habb/jmp/lib -leventpath -latl -lpthread -lrt -ltiming
However, this stinking libtool thing produces this:
Code:
libtool: link: CC -g -O0 -o manager manager.o -L/global/homes/h/habb/jmp/lib /global/homes/h/habb/jmp/lib/libeventpath.so /global/homes/h/habb/jmp/lib/libgen_thread.so /global/homes/h/habb/jmp/lib/libffs.so /global/homes/h/habb/jmp/lib/libcod.so /global/homes/h/habb/jmp/lib/libdill.so -lm /global/homes/h/habb/jmp/lib/libfm.so /global/homes/h/habb/jmp/lib/libcercs_env.so -ldl /global/homes/h/habb/jmp/lib/libatl.so -lpthread -lrt -ltiming
All of those other things are which eventpath depends upon, but why is libtool using the .so instead of the .a?