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

gcc4.7 can't build codeblocks

<< < (9/12) > >>

reckless:
Finally i got it working :)

Gcc-4.7.0 can be bootstrapped with

--disable-build-poststage1-with-cxx \
--disable-build-with-cxx \

For the libstdc++ problem you need to recompile binutils and mingw-w64 api.
use --enable-threads=posix and suddenly it worked  ??? damnest thing is all executables now need libwinpthread-0.dll (im gonna try if i can link it in statically).

reckless:
Just a heads up.
Got gcc 4.7.0 to work with win32 threads again and i rebuilt the trunk version of CodeBlocks with it, and it works it seems.
I can upload the 4.7.0 build CodeBlocks if someone wants to test it.

MortenMacFly:

--- Quote from: reckless on May 18, 2012, 08:16:09 am ---Got gcc 4.7.0 to work with win32 threads again and i rebuilt the trunk version of CodeBlocks with it, and it works it seems.

--- End quote ---
The question is: Did you need to patch C::B to make it compile or not?

xunxun:

--- Quote from: reckless on May 14, 2012, 06:52:23 am ---Finally i got it working :)

Gcc-4.7.0 can be bootstrapped with

--disable-build-poststage1-with-cxx \
--disable-build-with-cxx \

For the libstdc++ problem you need to recompile binutils and mingw-w64 api.
use --enable-threads=posix and suddenly it worked  ??? damnest thing is all executables now need libwinpthread-0.dll (im gonna try if i can link it in statically).

--- End quote ---

Don't know why you add
--disable-build-poststage1-with-cxx \
--disable-build-with-cxx \

Another thing, when you use --enable-threads=posix and winpthread, I suggest you to use gcc static edition, because someone found that shared edition is not normal when using some std:thread

reckless:
@ Morten. Only with the patches from here + -fpermissive in the compiler vars.
@ Xunxun. Dont need pthreads anymore i got i working with win32 threads. Only need --disable-build-poststage1-with-cxx because g++ seems to have a bug with its system header composition (older versions of gcc used gcc for bootstrapping everything, 4.7.0 uses g++ from stage2 and forward). But agree if using --enable-threads=posix and winpthread static might be the better choice.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version