...ibcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status make[2]: *** [libscws.la] Error 1 make[2]: Leaving directory `/home/sundaming/scws-1.1.6/libscws' make[1]: *** [all-recursive] Error 1 gcc -Wl,--base-file,.libs/cygscws-1.dll-base -Wl...
...ibcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status make[2]: *** [libscws.la] Error 1 make[2]: Leaving directory `/home/sundaming/scws-1.1.6/libscws' make[1]: *** [all-recursive] Error 1 gcc -Wl,--base-file,.libs/cygscws-1.dll-base -Wl...
奇怪,运行不成功? 我在/home/zz/libcws下编译了libscws.a 然后执行gcc -o test -I/home/zz/libscws -L/home/zz/libcws test.c -lscws 提示: /usr/bin/ld: cannot find -lscws collect2: ld returned 1 exit status 是什么地方出错了?
gcc -o test -I/usr/local/scws/include/scws -L /usr/local/scws/lib test.c -lscws -Wl,--rpath -Wl, /usr/local/scws/lib /usr/bin/ld: cannot find /usr/local/scws/lib: File format not recognized collect2: ld returned 1 exit status Hightman 能否解决下?
...ostream&)': : undefined reference to `FlintTable_base::is_empty() const' collect2: ld returned 1 exit status make[2]: *** [bin/xapian-check] Error 1 make[2]: Leaving directory `/root/xunsearch-full-1.4.1/xapian-core-scws-1.2.13' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directo...
...y': flock.c:(.text+0x205): undefined reference to `pthread_rwlock_destroy' collect2: ld returned 1 exit status make[1]: *** [xs-import] Error 1 make[1]: Leaving directory `/usr/local/xunsearch-full-1.0.1/xunsearch-1.0.1/src' make: *** [install-recursive] Error 1