User forums > Using Code::Blocks
Enjoying C++11 Experience with Code::Blocks
cpp_lover:
Hi Everyone,
I would like to try out the exciting features offered by the new C++11 Standard using CodeBlocks. I heard that TDM-GCC 4.6.1 implemented many of the features. I have downloaded and installed it on my PC. But I am wondering how to integrate it with CodeBlocks 10.05.
Kindly have a look at the attached picture showing global compiler settings I have on CodeBlocks. In particular I need to put proper paths and files for:
C++ compiler:
Linker for dynamic libs:
Linker for static libs:
Debugger:
Resource compiler:
Make program:
As you can see, the current installation directory I have is
C:\Program Files\CodeBlocks\MinGW
I know that I need to change it to the TDM-GCC directory which for me is
C:\TDM-GCC
Also, I think I need to select this compiler flag:
-std=c++0x
Please help me with the fields above (shown in the attached picture also) and let me know if I am missing anything.
Thank you all.
----- cpp_lover
[attachment deleted by admin]
MortenMacFly:
--- Quote from: cpp_lover on August 29, 2012, 12:03:42 pm ---I know that I need to change it to the TDM-GCC directory which for me is
C:\TDM-GCC
[...]
Also, I think I need to select this compiler flag:
-std=c++0x
--- End quote ---
So why don't you simply do it?
thomas:
Better use -std=c++0x -U__STRICT_ANSI__ or you will run into trouble when including headers like cstdio (or when using a third-party library that does this).
Other than that, nothing to be done.
cpp_lover:
Thomas,
Thanks. But how do I add a new flag. I can only see a built in flag which is -std = c++0x which I can only select/unselect.
MortenMacfly,
If you saw, I attached a snapshot. I needed to know what to put in these fields:
C++ compiler:
Linker for dynamic libs:
Linker for static libs:
Debugger:
Resource compiler:
Make program:
However, I have put another attachment just now. Please see if I have put the right things in the fields.
[attachment deleted by admin]
[attachment deleted by admin]
Jenna:
Put flags not in the list into other options (the same way you would do it at the commandline).
Navigation
[0] Message Index
[#] Next page
Go to full version