What is the use of the bin and obj folders in the C + + project folder? (Supplemental multi-file structure)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.