User forums > Using Code::Blocks
Updating GCC
Jc6828:
I am using Code::Blocks 10.05
Can you tell me where I can find the version of GCC that came with it and if it is 4.5 how I can update to 4.6.
I ask this as when I use in C++
array<int,13> monthdays = { 29, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
I get an error that the braces are missing and have to put another set round as follows
array<int,13> monthdays = {{ 29, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }};
According to the C++ Forum this has been fixed in GCC >4.6
I appreciate this is a pretty small thing but would like to know how to upgrade anyway for future reference.
oBFusCATed:
Have you seen this topic : http://forums.codeblocks.org/index.php/topic,15283.0.html
Jc6828:
I have looked at that topic and have downloaded the 32bit version.
When I try to install it I selected manage an existing version but when I clicked through to c/program files/code::blocks/mingw it would not allow me to select the mingw folder.
So Itried a new isntallation and again when I clicked through to the mingw folder it said ' do you really want to use this older it isn't empty'.
This worried me so I stopped at that point and came back here to ask your advice.
Should I uninstall the original mingw before installing the new one and if so will Code::Blocks then use it automatically?
Jenna:
--- Quote from: Jc6828 on October 10, 2011, 11:28:46 am ---Should I uninstall the original mingw before installing the new one and if so will Code::Blocks then use it automatically?
--- End quote ---
Yes and no.
Uninstall the previous version and after installing the new one go to "Setup -> Compiler and debugger -> Gnu GCC compiler -> Toolchain executables" and try the autodetection, if that does not work set the compilers installation path manually and make sure the executables have the correct names.
Jc6828:
Thanks for that.
However it appears that I can only uninstall the whole Code::Blocks installation not just the mingw part.
If I do that and download a new Code::Blocks and re-install that will that include the latest version of GCC or will it still be the same as the one I am currently using.
You may gather from these questions I am not completely au fait with setting up applications on Windows but generally just follow the default prompts - and you would gather correctly!!
Navigation
[0] Message Index
[#] Next page
Go to full version