Question

I have irrlicht 1.6 on my computer and I use codeblocks + tdm-gcc MinGW 4.7. What the situation is is that when I compile an example program, it compiled fine, but when I try to run it, it always give me a segmentation fault error. It returns with code -1073741819 (0xC0000005). It always has a segmentation fault at any attempt to use the graphics drivers. This is where the sementation fault occurs.

guienv->addStaticText(L"Hello World! This is the Irrlicht Software renderer!",
    rect<int>(10,10,200,22), true);
Was it helpful?

Solution

I've searched all over the internet for a solution, and could not find any. Even if I build my own dll, it is oversized (22mb +) and does not contain all of the functions of irrlicht despite. So, I decided to downgrade from tdm-gcc 4.7 to 4.6, and it works perfectly, with the original dll and all of the functions. In case someone has the same problem, and would like to try downgrading, get the installer at http://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/Previous/1.1006.0/

UPDATE

I found out that with the release of irrlicht 1.8, it now compiles properly with MinGW 4.7 32bit and 64bit.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top