用mingw编译KBEngine报错求解

g1017 发布于 2015/06/07 20:16
阅读 518
收藏 0

MySQL连接为什么挂死了?别踩坑!>>>

@开源中国部长- 你好,想跟你请教个问题:

编译错误如下:


cd dependencies/g3dlite && make all
make[2]: Entering directory `/d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/g3dlite'
g++ -m32 -pipe -Wall -Wno-deprecated -Wno-uninitialized -Wno-char-subscripts -fno-strict-aliasing -Wno-non-virtual-dtor -Wno-invalid-offsetof -Werror -O3 -g -DENABLE_WATCHERS -DNO_USE_LOG4CXX -DUSE_SIGAR -DUSE_J
EMALLOC -DKBE_SERVER -MMD -DKBE_CONFIG=\"Hybrid\" -DCODE_INLINE -DKBE_USE_ASSERTS -D_HYBRID -I /d/Disk/app-win-developing/kbengine-0.6.1/kbe/src -I /d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib -I /d/Dis
k/app-win-developing/kbengine-0.6.1/kbe/src/server -I /d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies -I /d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/tinyxml -I /d/Disk/a
pp-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/log4cxx/src/main/include -I/d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/openssl/include -I/d/Disk/app-win-developing/kbengine-0.6.1
/kbe/src/lib/dependencies/g3dlite -I/d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/sigar/linux -I/d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/jwsmtp/jwsmtp/jwsmtp -I/d/D
isk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/tmxparser -I/d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/zip -I/d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependenc
ies/jemalloc/include  -c AABox.cpp -o Hybrid/AABox.o
In file included from AABox.cpp:10:0:
G3D/platform.h:62:0: error: ignoring #pragma warning  [-Werror=unknown-pragmas]
 #pragma warning(disable:4996)
 ^
G3D/platform.h:63:0: error: ignoring #pragma warning  [-Werror=unknown-pragmas]
 #pragma warning(disable:4819)
 ^
G3D/platform.h:147:0: error: ignoring #pragma warning  [-Werror=unknown-pragmas]
 #       pragma warning (disable : 4127)
 ^
G3D/platform.h:165:0: error: ignoring #pragma warning  [-Werror=unknown-pragmas]
 #   pragma warning (disable : 4786)
 ^
G3D/platform.h:167:0: error: ignoring #pragma warning  [-Werror=unknown-pragmas]
 #   pragma warning (disable : 4244)
 ^
In file included from AABox.cpp:10:0:
G3D/platform.h:219:0: error: ignoring #pragma comment  [-Werror=unknown-pragmas]
         #pragma comment(linker, "/NODEFAULTLIB:LIBC.LIB")
 ^
G3D/platform.h:220:0: error: ignoring #pragma comment  [-Werror=unknown-pragmas]
         #pragma comment(linker, "/NODEFAULTLIB:msvcrt.lib")
 ^
G3D/platform.h:221:0: error: ignoring #pragma comment  [-Werror=unknown-pragmas]
         #pragma comment(linker, "/NODEFAULTLIB:libcd.lib")
 ^
G3D/platform.h:222:0: error: ignoring #pragma comment  [-Werror=unknown-pragmas]
         #pragma comment(linker, "/NODEFAULTLIB:libcmtd.lib")
 ^
G3D/platform.h:223:0: error: ignoring #pragma comment  [-Werror=unknown-pragmas]
         #pragma comment(linker, "/NODEFAULTLIB:msvcrtd.lib")
 ^
cc1plus.exe: all warnings being treated as errors
make[2]: *** [Hybrid/AABox.o] Error 1
make[2]: Leaving directory `/d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib/dependencies/g3dlite'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/d/Disk/app-win-developing/kbengine-0.6.1/kbe/src/lib'
make: *** [all] Error 2

加载中
0
开源中国部长_柯标
开源中国部长_柯标
http://bbs.kbengine.org/ 问吧
返回顶部
顶部