Compile problem with devcpp

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
darksmaster923
Posts: 51
Joined: Tue Jan 02, 2007 11:04 pm
Location: huntington beach

Compile problem with devcpp

Post 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?
Programmers are merely tools to convert caffeine into code.
CuteAlien
Admin
Posts: 9720
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Brainsaw
Posts: 1177
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

The problem is that the createDevice call now needs dimension2d<u32> instead of dimesion2d<s32>.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post 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.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Brainsaw
Posts: 1177
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post 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 ;) )
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
jeetee
Posts: 15
Joined: Tue Oct 13, 2009 3:09 pm
Contact:

Post by jeetee »

*wonders why almost nobody on here uses Eclipse/CDT*
Post Reply