开发者

cannot find -lmysqlclient collect2: ld returned 1 exit status

Invoking: Cygwin C++ Linker g++ -nostartfiles -L"E:\cygwin\lib\mysql\lib" -lmysqlclient -lz -shared -o"final.so" ./src/one.o ./src/two.o ./src/three.o ./src/four.o ./src/five.o

/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lmysqlclient collect2: ld returne开发者_如何学JAVAd 1 exit status


The error message states that the mysqlclient library cannot be found. Since you're using Cygwin the issue might be that you're using a Windows-style path -L"E:\cygwin\lib\mysql\lib". I believe the GNU C++ Linker expects a Unix-style path, such as -L"/lib/mysql/lib".

Without more specific information it's hard to say though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜