using irrlicht with mingw

I'm using mingw-w64 (gcc 4.9.2)

I downloaded irrlicht i tried an example

C:devirrlicht-1.8.1irrlicht-1.8.1libWin32-gcc>x86_64-w64-mingw32-g++ -I../ ../include/ -L. -lIrrlicht test.cpp C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./l ibIrrlicht.a when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./I rrlicht.dll when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible .l ibIrrlicht.a when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./l ibIrrlicht.a when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./I rrlicht.dll when searching for -lIrrlicht

C:/Program Files (x86)/CodeBlocks/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mi ngw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lIrrlicht collect2.exe: error: ld returned 1 exit status

it seems the library Irrlicht.a provided isn't compatible with my compiler. so I tried to recompile the library as indicated in the Makefile, i ran mingw32-make win32 and then i get another error : : recipe for target 'zlib/adler32.o' failed

mingw32-make: *** [zlib/adler32.o] Error 1

can anybody help (note that i don't want to use vc++)


问题是Irrlicht.a提供的是一个32位库,我正在编译64位,所以我不得不使用32位编译器。

链接地址: http://www.djcxy.com/p/53394.html

上一篇: 为什么GCC不显示矢量化信息?

下一篇: 用mingw使用irrlicht