开发者

cannot find -lmysqlclient collect2: ld returned 1 exit status

开发者 https://www.devze.com 2023-01-04 22:23 出处:网络
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

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

精彩评论

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

关注公众号