Codeblocks and Irrlicht install problem

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.
Mallot1
Posts: 13
Joined: Tue Sep 11, 2012 9:46 pm

Codeblocks and Irrlicht install problem

Post by Mallot1 »

Hi in trying to install Irrlicht for Codeblocks 12:11 :D :mrgreen: . Im on an x64 bit WIndows 8 PC. i looked in the lib and bin folders and there is no win64gcc files. How would i install it? when ever try the win32gcc libs and dll i got the following error:

Code: Select all

"The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library F:Projects\Coding programs\CodeBlocks\irrlicht-1­­.8\lib\Irrlicht.dll." 
what am i doing wrong? when i use the visual studio 64 files it worked one time but now it doesnt. Please help :?
It works when i use x32VisualStudio but then crashes once i close the program. :(
Mitchell M
Posts: 15
Joined: Sat Jul 06, 2013 2:18 pm

Re: Codeblocks and Irrlicht install problem

Post by Mitchell M »

I've had that same problem before. What I did was use Codeblocks to rebuild Irrlicht and use the Win32-gcc (even though I am also using x64.) Hope that helps.

Mitchell
Mallot1
Posts: 13
Joined: Tue Sep 11, 2012 9:46 pm

Re: Codeblocks and Irrlicht install problem

Post by Mallot1 »

ok thankyou ill try it :D :P
Mallot1
Posts: 13
Joined: Tue Sep 11, 2012 9:46 pm

Re: Codeblocks and Irrlicht install problem

Post by Mallot1 »

Mitchell M wrote:I've had that same problem before. What I did was use Codeblocks to rebuild Irrlicht and use the Win32-gcc (even though I am also using x64.) Hope that helps.

Mitchell
aww i got the same error as before :( thanks anyway :). I am thinking maybe i linked it wrong, where did u learn how to setup Irrlicht? im using Irrlicht 1.8
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Codeblocks and Irrlicht install problem

Post by mongoose7 »

You should google the error.

A workaround is to simply define

Code: Select all

int __gxx_personality_v0;
in your main module. Hybrid posted on this, but i guess he is on holiday.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: Codeblocks and Irrlicht install problem

Post by sudi »

link the compiler runtime lib staticly with:

-static-libstdc++ -static-libgcc

as compiler flags
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Mitchell M
Posts: 15
Joined: Sat Jul 06, 2013 2:18 pm

Re: Codeblocks and Irrlicht install problem

Post by Mitchell M »

mongoose7 wrote:You should google the error.

A workaround is to simply define

Code: Select all

int __gxx_personality_v0;
in your main module. Hybrid posted on this, but i guess he is on holiday.
I had googled a lot when I tried to find the answer and I had no idea it was that simple I thought it was something with one of the DLLs in my codeblock's mingw folder or something.

Mitchell
Mallot1
Posts: 13
Joined: Tue Sep 11, 2012 9:46 pm

Re: Codeblocks and Irrlicht install problem

Post by Mallot1 »

Sudi wrote:link the compiler runtime lib staticly with:

-static-libstdc++ -static-libgcc

as compiler flags
do you set those in the #defines tab?
Mallot1
Posts: 13
Joined: Tue Sep 11, 2012 9:46 pm

Re: Codeblocks and Irrlicht install problem

Post by Mallot1 »

mongoose7 wrote:You should google the error.

A workaround is to simply define

Code: Select all

int __gxx_personality_v0;
in your main module. Hybrid posted on this, but i guess he is on holiday.
ok thanks ill try it :D
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: Codeblocks and Irrlicht install problem

Post by sudi »

Mallot1 wrote:
Sudi wrote:link the compiler runtime lib staticly with:

-static-libstdc++ -static-libgcc

as compiler flags
do you set those in the #defines tab?
I think it was "Linker Settings" -> "other linker options"
and please don't pm if you don't get an answer right away....
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Mallot1
Posts: 13
Joined: Tue Sep 11, 2012 9:46 pm

Re: Codeblocks and Irrlicht install problem

Post by Mallot1 »

Sudi wrote:
Mallot1 wrote:
Sudi wrote:link the compiler runtime lib staticly with:

-static-libstdc++ -static-libgcc

as compiler flags
do you set those in the #defines tab?
I think it was "Linker Settings" -> "other linker options"
and please don't pm if you don't get an answer right away....
i PM'ed you before the post, sorry.
Mallot1
Posts: 13
Joined: Tue Sep 11, 2012 9:46 pm

Re: Codeblocks and Irrlicht install problem

Post by Mallot1 »

Can someone make a youtube video either showing installation of Irrlicht of Codeblocks, or how to fix an "The procedure entry point __gxx_personality_v0 could not ve located in the dynamic lnk library (directory)\irrlicht-1.8\lib\Irrlicht.dll" error, or both :D a video would really help me :D :D :D :D
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: Codeblocks and Irrlicht install problem

Post by sudi »

Are you sure you rebuild irrlicht and it didn't work after that? Are you linking the newly compiled lib? Try removing every Irrlicht.dll and libIrrlicht.a you have. Then recompile.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Mallot1
Posts: 13
Joined: Tue Sep 11, 2012 9:46 pm

Re: Codeblocks and Irrlicht install problem

Post by Mallot1 »

I tried that, but it didnt change anything :(
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Codeblocks and Irrlicht install problem

Post by CuteAlien »

Ok, I just walked another person through this who had the same trouble. Basically he was using the Mingw coming with C::B (while I build the dll with the official MinGW which doesn't seem to be compatible in this case). And the trick was in the end rebuilding Irrlicht.dll and using that. But he also had a few troubles at first - which mainly where caused because he first didn't notice that the dll was not yet rebuild.

So make really certain your dll in win32-gcc really, really is new afterwards(!) Delete the old one first for example and then a new one should be there again after a rebuild. And then rebuild the example file once more (to force it to link to the new lib). And then start the exe directly in the win32-gcc folder for example to be really certain it is using this new dll.
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
Post Reply