Shridhar Daithankar <[EMAIL PROTECTED]> writes:

> gcc -I. -c main.c test1.c test2.c
> gcc -shared -o libtest1.so test1.o
> gcc -shared -o libtest2.so test2.o
> gcc -o test -L. -ltest1 main.o
> 
> $ ./compile.sh
> ./libtest1.so: undefined reference to `func4'
> collect2: ld returned 1 exit status             

func4 is defined in libtest2.so.  You aren't linking against
libtest2.so.  This is expected behaviour.  Why would you expect
something different?

Ian


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to