Patch to fix the CB Wizard code under Windows.
Edit: Created this ticket partly to test how to create tickets https://sourceforge.net/p/codeblocks/tickets/19/ (https://sourceforge.net/p/codeblocks/tickets/19/)
Index: src/plugins/scriptedwizard/resources/irrlicht/files/main.cpp
===================================================================
--- src/plugins/scriptedwizard/resources/irrlicht/files/main.cpp (revision 9827)
+++ src/plugins/scriptedwizard/resources/irrlicht/files/main.cpp (working copy)
@@ -66,9 +66,15 @@
parameter here, and set it to 0.
*/
+#ifdef _WIN32
IrrlichtDevice *device =
+ createDevice(EDT_SOFTWARE, dimension2d<u32>(640, 480), 16,
+ false, false, false, 0);
+#else
+ IrrlichtDevice *device =
createDevice(EDT_SOFTWARE, dimension2d<s32>(640, 480), 16,
false, false, false, 0);
+#endif
/*
Set the caption of the window to some nice text. Note that there is
Tim S.
Why on earth this is needed?
As far as I can see the only difference is s32 vs u32, am I correct?
Correct, the build errors out without the change. I can redo the testing to find the error.
Tim S.
mingw32-g++.exe -Wall -g -Wmissing-include-dirs -Wfatal-errors -Wno-unused-local-typedefs -IE:\OpenSourceCode\Apps\IDEs\CodeBlocks\codeblocks_devpaks\third_party_libs\irrlicht-1.8.1\include -c E:\Test\irr\main.cpp -o obj\Debug\main.o
E:\Test\irr\main.cpp: In function 'int main(int, char**)':
E:\Test\irr\main.cpp:71:35: error: invalid initialization of reference of type 'const irr::core::dimension2d<unsigned int>&' from expression of type 'irr::core::dimension2d<int>'
false, false, false, 0);
Tim S.