Page 1 of 1

Compile problem with devcpp

Posted: Thu Dec 10, 2009 5:14 am
by darksmaster923
I'm trying to compile irrlicht with devcpp with the tutorial on the irrlicht site, but all it gives me is

Code: Select all

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing  make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/irrlicht-1.6/include"  -I"C:/irrlicht-1.6/lib/Win32-gcc"   

main.cpp: In function `int main()':
main.cpp:21: error: invalid initialization of reference of type 'const irr::core::dimension2d<irr::u32>&' from expression of type 'irr::core::dimension2d<irr::s32>'
C:/irrlicht-1.6/include/irrlicht.h:329: error: in passing argument 2 of `irr::IrrlichtDevice* irr::createDevice(irr::video::E_DRIVER_TYPE, const irr::core::dimension2d<irr::u32>&, irr::u32, bool, bool, bool, irr::IEventReceiver*)'

make.exe: *** [main.o] Error 1

Execution terminated
What do i do?

Posted: Thu Dec 10, 2009 5:20 am
by CuteAlien
Please use the tutorials from the example folder of the engine. Those are more up-to-date. Also we generally recommend switching to codeblocks currently as there doesn't seem to be going on any further development on devcpp since several years.

Posted: Thu Dec 10, 2009 6:35 am
by Brainsaw
The problem is that the createDevice call now needs dimension2d<u32> instead of dimesion2d<s32>.

Posted: Thu Dec 10, 2009 4:46 pm
by Mel
I agree with CuteAlien, i started myself with DevCPP, but i recomend 100% to switch, either to Visual Studio Express or Code::Blocks.

DevCPP is buggy and sometimes umpredictable, its MINGW version is too old, and the DirectX DevPack is not as efficient as it should be, and the project management it does is also buggy. Though, in the DX DevPack there is DX8 support.

In exchange, the DirectX SDK can be used with Code::Blocks (even DirectX10 and 11 ones) And Visual Studio Express is from Microsoft, and it is free of charge, so it is highly advisable to switch from DevCPP to anything better.

And even there is a Code::Blocks under LINUX, so, if you switched to the OS of the Pengüin, it would be almost the same.

Posted: Fri Dec 11, 2009 6:27 am
by Brainsaw
Agree with that. Used Dev-Cpp some years ago, but I'm happy since I switched to Code::Blocks (with a little period of unhappieness while I tried to use VC 2008 Express ;) )

Posted: Fri Dec 11, 2009 8:43 am
by jeetee
*wonders why almost nobody on here uses Eclipse/CDT*