ln -s /usr/local/scws/lib/libscws.so.2.0 /usr/local/scws/lib/libscws.so 编译很顺利,就遇到这一个问题:D
en这样解决也比较简单可靠,又避免把scws装到/usr/local中去混杂在一起
奇怪,运行不成功? 我在/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 能否解决下?
...(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,-e,__cygw...
...orts -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /usr/local/php checking for PHP includes... -I/usr/local/php/inclu...
...g for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking build s...
...orts -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /usr/local/php51 checking for PHP includes... -I/usr/local/php51/i...
...g for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whethe...
...(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,-e,__cygw...