gcc,cygwin: Unable to find depending library when creating library -
why cannot ld find library libjarray.so below?
gcc -shared -wl,-soname,libjstring.so.0.1 -i/home/jocke/development/jstring/../jarray/output -i/home/jocke/development/jstring -l/home/jocke/development/jstring/../jarray/output -ljarray jstring.o -o libjstring.so.0.1
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -ljarray collect2: error: ld returned 1 exit status
$ ls -l /home/jocke/development/jstring/../jarray/output total 79<br> lrwxrwxrwx 1 jocke domain users 41 oct 29 11:58 jarray.c -> /home/jocke/development/jarray/jarray.c -rw-r--r-- 1 jocke domain users 9840 oct 29 11:25 jarray.o lrwxrwxrwx 1 jocke domain users 52 oct 29 11:58 jarray_test.c -> /home/jocke/development/jarray/utest/jarray_test.c lrwxrwxrwx 1 jocke domain users 16 oct 29 11:58 libjarray.so -> libjarray.so.0.1 -rwxr-xr-x 1 jocke domain users 62905 oct 29 11:58 libjarray.so.0.1
here found solution problem:
building , linking shared library
i needed specific syntax create work, similar to:
-l:libbeat.so.1.0.1
gcc cygwin ld
No comments:
Post a Comment