Code:: blocks has flexible and powerful configuration function. In addition to supporting its own project files and C / C + + files, it also supports AngelScript, batch processing, CSS files, D language files, diff / patch files, fortan77 files, gamemonkey script files, Hitachi assembly files, Lua files, MASM assembly files, matlab files, NSIS open source installation program files, ogre files Composition script file, ogre material script file, OpenGL shading language file, python file, windows resource file, XBASE file, XML file, NVIDIA CG file. Identify DEV-C + + project, Ms vs 6.0-7.0 project file, workspace, solution file.
Code:: blocks is developed based on wxWidgets, which shows the power of wxWidgets. In the past, Borland C + + Builder x claimed to develop the best C + + IDE environment with cross platform, good compatibility and based on wxWidgets, but it has not been realized; let’s wait and see. Domestic Code:: blocks enthusiasts and cross platform developers should establish Chinese Code:: blocks website as soon as possible, provide code:: blocks Chinese culture support, and promote the development of code:: blocks in China.
Download the latest version of codeblocks-17.12 cloud disk (installation package contains compiler), codeblocks-17.12mingw-setup + Chinese package.
Blue playing cloud:https://www.lanzous.com/b375328Password: f2cm
Official website:http://www.codeblocks.org/downloads2. Double click the installation package file to install
Hit “I agree”
It is recommended to install it in the default location of disk C. if it is installed on other disks, you need to manually configure the compiler path after installation, otherwise you cannot compile the source code.
When you install CodeBlocks on a disk other than disk C (such as disk D, disk e or other disks, or in a directory other than the default directory when you install CodeBlocks on Disk C), the system cannot correctly identify the address of the compiler (this may be a design defect of the software itself). Please try to uninstall and install again, and install the software in the default directory of Disk C during installation. Do not change anything, or manually update the path where the compiler is located.
Wait for the installation to complete
Wait for startup to complete
In the process of waiting to start, you can click the installation window just now and click “next”
Click the automatically derived compiler (GNU gcc compiler), and then click “OK”
Click “no, leave everything as it is”, and then click “OK”
3. Set CBP file to open with CodeBlocks by default. After opening, it is better to configure it so that all CBP files (code bolcks project, CodeBlocks project file) are opened with CodeBlocks by default. Click “setting” – > “environment”
Click “set now” as shown in the figure
After that, open the CBP file with CodeBlocks by default. Double click the CBP file.
4. CodeBlocks Chinese package usage decompression_ CN.zip Get zh_ CN.mo In addition, I don’t know if some people are stupid. If I provide Zh_ CN.mo Do you need to decompress it? Use zh directly_ CN.mo Isn’t this file all right? Only if what I offer is zh_ CN.zip You need to decompress when you need to. I don’t need to say much about it. There’s really no medicine to help, and I can’t help it.
Right click the CodeBlocks icon, and then select the location of the open file (of course, you can also go to Disk C to find it slowly, or your CodeBlocks are installed on other disks, you can go to other disks to find it, but that’s too slow)
Enter the share directory (or folder, the same below), create a new “locale” directory in the share directory, and then create a new “zh” directory in the locale directory_ Cn “directory, and finally the ZH_ CN.mo Move to “zh”_ Cn directory.
Open CodeBlocks and enter “environment…” in “Settings”
Click “view” and tick “internationalization”
Click “Chinese” in the drop-down list as shown in the figure, and then click “OK” to restart CodeBlocks
CodeBlocks cannot compile solution 5.1. The reason is that the installation package you downloaded does not contain a compiler. Please go to the cloud disk link shared above to download the installation package again. When you install CodeBlocks on a disk other than disk C (such as disk D, disk e or other disks, or in a directory other than the default directory when you install CodeBlocks on Disk C), the system cannot correctly identify the address of the compiler (this may be a design defect of the software itself). Please try to uninstall and install again, and install the software on Disk C during installation, or manually update the path where the compiler is located.
5.2. Manually set compiler path setting compiler, that is setting compiler
Go to toolchain exits and you can execute the tool link (or the address, in windows, the link refers to the address, which means the address of your compiler tool)
Click auto detect, and then click OK to see if the path of automatic search to compiler can be used (generally, it can be found automatically, if not, please refer to step 4 to fill in manually).
Click on the icon ” “, find your installation directory. Note that there should be a bin (toolbox) folder in the directory you choose, and all compilers should be in this bin directory, and the name of the compiler should be the same as the name on the diagram. Otherwise, after this step is set, the system still can’t recognize it, and you need to update each compiler one by one.
In this step, I will give you an example. For example, my installation directory is C: / / program files (x86) \ \ CodeBlocks \ \ MinGW
When you enter this directory, you will see a bin folder. When you open the bin folder, you will see many executable files (EXE format), some of which are compilers
For example, the C compiler is mingw32- gcc.exe If I go to the directory and change the file name to “coco-c compiler. Exe”, or if I don’t change the name, I will change the mingw32- gcc.exe Move files to your desktop or somewhere else
At this time, I will go to the compiler settings page to update the location and name of the C language compiler. Otherwise, how can CodeBlocks be found. That’s why you can’t find the software installed on disk D, because the default installation directory in Disk C is what the system looks for by default. In addition, although you have installed it on Disk C, it is not installed in the program files (x86) folder by default, but in your own new folder or other places. CodeBlocks may not be able to find your compiler at this time. You can either manually update the directory where the compiler is located, or you don’t choose any custom options at the time of installation, just follow the default.