Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

gcc4.7 can't build codeblocks

<< < (3/12) > >>

xunxun:

--- Quote from: headkase on April 16, 2012, 09:20:25 am ---Just wanted to add my experience to this thread:

I'm trying to get the C::B SVN, which at this moment is 7932, to compile on Arch Linux.  Just not having any luck.  Even with -fpermissive it eventually errors out because Arch is *only* gcc 4.7.0.  There are some user-created gcc alternatives in Arch but they all just, well, suck so they aren't a realistic thing to install just to use them to compile C::B.  I'm hoping sooner rather than later that C::B SVN's code is updated so that it can compile under GCC 4.7.0.  Until it does so I'm, so so terribly, stuck using C::B 10.05.

On a related note: 10.05, 2010 May.  Pretty well coming up on two years: is there an expected release date for a new-stable C::B?

--- End quote ---

-fpermissive can't fix all things (especially in contrib plugins), maybe you can try SharkCZ's patches.

Hope Jens will fix soon.

headkase:

--- Quote from: xunxun on April 16, 2012, 05:56:03 pm ----fpermissive can't fix all things (especially in contrib plugins), maybe you can try SharkCZ's patches.

Hope Jens will fix soon.

--- End quote ---

I did try his mempatch but the error is not occurring there, it is occurring in the help plug in.  At least there first - maybe after too if the compilation made it past the help plugin.  The mempatch is not needed for squirrel when you use -fpermissive: compilation passes right by squirrel just complaining.

headkase:
I was able to get Code::Blocks SVN 7932 to compile with GCC 4.7.0 using this patch:

Here

That patch was made by RevenantX and he detailed how to use it, for Arch, Here.

I also used the "-fpermissive" compiler flag for the compile.

Awesome. ;)

Edit: I also used ONLY that one patch and the -fpermissive compiler flag.

reckless:
Heh funny we stumbled on the same bugger  ;D Btw Erase also needs to be this->Erase.
I can build it to but the darn thing crashes :(

headkase:

--- Quote from: reckless on April 17, 2012, 05:13:32 pm ---Heh funny we stumbled on the same bugger  ;D Btw Erase also needs to be this->Erase.
I can build it to but the darn thing crashes :(

--- End quote ---

The build I made doesn't crash: it appears to be working just fine.

I used just that patch, it runs, I can compile a project and run it.  I also debugged the project and that worked.  I've compiled a simple console application and an SDL application.  Both have worked for me.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version