LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 731|回复: 3

幫下手吖...THX!

[复制链接]
发表于 2003-6-18 12:44:07 | 显示全部楼层 |阅读模式
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Examples\MySQLClientTest\Makefile.win"
Executing  make...
make.exe -f "C:\Dev-Cpp\Examples\MySQLClientTest\Makefile.win" all
g++.exe -c MySQLClientTest.cpp -o MySQLClientTest.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  
gcc.exe MySQLClientTest.o  -o "MySQLClientTest.exe" -L"C:/Dev-Cpp/lib" -lmySQL
MySQLClientTest.o(.eh_frame+0x11):MySQLClientTest.cpp: undefined reference to `__gxx_personality_v0'
make.exe: *** [MySQLClientTest.exe] Error 1
Execution terminated

錯在哪裏??
发表于 2003-6-18 13:26:49 | 显示全部楼层
undefined reference to `__gxx_personality_v0'
 楼主| 发表于 2003-6-18 13:33:16 | 显示全部楼层
這個我知道.應該怎樣修改????
发表于 2003-6-18 16:51:22 | 显示全部楼层
undefined reference to
表示没有连对应的库

如你想用数学函数就应该 -lm
想使用那个函数就要link对应的库
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表