After using Code::Blocks to create a project, the blogger is preparing a new header file, and the attentive blogger discovers that there are two subfolders in the project folder, bin and obj, respectively. Curiosity driven, want to know what these two folders for what to do, online search, integration as follows:
First, the bin is shorthand for binary (binary), and obj is shorthand for object (presumably translated into objects). The bin contains the result file generated by this project, which can be understood as an executable (. exe) file, and the intermediate file in obj, which is a chunked compilation, is used to speed up the next compilation and modify only the changed blocks.
In addition, there are two subfolders in bin and obj, respectively debug and release, which correspond to the beta and release versions, which is well understood.
The above is the master of bin and obj two folders understanding, Welcome to correct, discuss.
Addition:
In the process of using CB to build a multi-file structure, the blogger discovers that the class can be added directly using CB, and can automatically generate the definition (. h file) and implementation (. cpp files) of the classes. For this reason, CB will automatically generate two subfolders in the project folder, respectively, include and SRC, presumably include is the header file that holds the custom class, SRC is the CPP file that holds the class implementation.
At this point, in the C + + project folder, there are four subfolders, namely bin, obj, include, Src.
What is the use of the bin and obj folders in the C + + project folder? (Supplemental multi-file structure)