/tmp/ccHcm1R9.o: In function `main':
test.c:(.text+0x5): undefined reference to `func1'
test.c:(.text+0xa): undefined reference to `func2'
collect2: error: ld returned 1 exit status
gcc test.c -o test -laston 报错
/usr/bin/ld: cannot find -laston
collect2: error: ld returned 1 exit status
/tmp/ccbKiNBL.o: In function `main':
test.c:(.text+0x5): undefined reference to `func1'
test.c:(.text+0xa): undefined reference to `func2'
collect2: error: ld returned 1 exit status
第二步,编译方法:gcc test.c -o test -laston报错
/usr/bin/ld: cannot find -laston
collect2: error: ld returned 1 exit status
第三步,编译方法:gcc test.c -o test -laston -L.编译通过
但是运行报错
./test: error while loading shared libraries: libaston.so: cannot open shared object file: No such file or directory