User Tools

Site Tools


cplusplus:installing_codeblocks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cplusplus:installing_codeblocks [2015/12/31 20:31] – [After installing] mithatcplusplus:installing_codeblocks [2016/01/10 01:42] (current) mithat
Line 23: Line 23:
 === MacOS === === MacOS ===
  
-There is a version of [[http://codeblocks.org/downloads/26#mac|Code::Blocks for MacOS]], but it is claimed to be very buggy. In addition, I have no idea if it supports C++11 (the version of C++ used in this course). You might be better off with [[https://developer.apple.com/xcode/|Xcode]], but I don't know what is involved in making that C++11 compliant. In short, if you want to use a Mac for this course, you're mostly on your own.+There is a version of [[http://codeblocks.org/downloads/26#mac|Code::Blocks for MacOS]], but it is claimed to be buggy. In addition, I don't know if it supports C++11 (the version of C++ used in this course). You might be better off with [[https://eclipse.org/cdt/|Eclipse CDT]] or [[https://developer.apple.com/xcode/|Xcode]], but I don't know what is involved in making either C++11 compliant.
  
 ===== Installing on Windows ===== ===== Installing on Windows =====
Line 29: Line 29:
 Download **''codeblocks-13.12mingw-setup-TDM-GCC-481.exe''** from the [[http://codeblocks.org/downloads/26#windows|Code::Blocks Download binary]] page. Download **''codeblocks-13.12mingw-setup-TDM-GCC-481.exe''** from the [[http://codeblocks.org/downloads/26#windows|Code::Blocks Download binary]] page.
  
-<WRAP center round important 99%>+<WRAP center round tip 99%>
 Be sure you download ''codeblocks-13.12mingw-setup-TDM-GCC-481.exe''. Do //not// download ''codeblocks-13.12-setup.exe'' or ''codeblocks-13.12mingw-setup.exe''. Be sure you download ''codeblocks-13.12mingw-setup-TDM-GCC-481.exe''. Do //not// download ''codeblocks-13.12-setup.exe'' or ''codeblocks-13.12mingw-setup.exe''.
 </WRAP> </WRAP>
- 
  
 The download links are on the right. The last time I tried, the BerliOS link wasn't working, but the Sourceforge.net link worked fine. The download links are on the right. The last time I tried, the BerliOS link wasn't working, but the Sourceforge.net link worked fine.
  
-After downloading, double click the installer to start the installer. Accept all the defaults and install Code::Blocks.((In the unlikely event that you have a previous Code::Blocks installation or have installed the MinGW compiler for other purposes, you will have to completely uninstall the previous Code::Blocks version, delete ''C:\Program Files\MinGW'', and remove ''C:\MinGW\bin'' and ''C:\MinGW\MSYS\1.0\bin'' from your ''PATH''.))+After downloading, double click the installer to start the installer. Accept all the defaults and install Code::Blocks. 
 + 
 +<WRAP center round info 99%> 
 +In the unlikely event that you have a previous Code::Blocks installation (or you have installed the MinGW compiler for other purposes), you will have to completely uninstall the previous Code::Blocks version, delete ''C:\Program Files\MinGW'', and remove ''C:\MinGW\bin'' and ''C:\MinGW\MSYS\1.0\bin'' from your ''PATH'' before installation. 
 +</WRAP>
  
 ===== After installing ===== ===== After installing =====
  
-**Set the compiler to use C++11 standards.**+==== Set the default compiler ==== 
 +You may have more than one compiler installed on your computer. To keep you from having to manually set the proper compiler each time you start a new project, verify that the desired compiler is set as the default by doing the following: 
 + 
 +  - Go to //Settings > Compiler...//\\ {{:cplusplus:compiler-settings-crop.png?direct&400|}} 
 +  - Make sure the //Compiler settings// tab is active. 
 +  - Select "GNU GCC Compiler" under //Selected compiler// if it is not already selected. 
 +  - If the //Set as default// button is active (i.e., not greyed out), click on it to make GNU GCC Compiler the default.  
 +  - On Windows, click on the "Toolchain executables" tab and confirm that //Compiler's installation directory// is set to either ''C:\Program Files\CodeBlocks\MinGW'' or ''C:\Program Files (x86)\CodeBlocks\MinGW''. On Linux, this field will probably be set to ''/usr'', meaning that it will use the system-provided GNU GCC tools. 
 + 
 +==== Set the compiler to use C++11 standards ====
  
 <WRAP center round important 99%> <WRAP center round important 99%>
cplusplus/installing_codeblocks.1451593910.txt.gz · Last modified: 2015/12/31 20:31 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki