Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8284927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:17:20+00:00 2026-06-08T11:17:20+00:00

Possible Duplicate: #include all .cpp files into a single compilation unit? I’m working on

  • 0

Possible Duplicate:
#include all .cpp files into a single compilation unit?

I’m working on a project in MSVS where most implementation files (.cpp) are excluded from the build and included in a single source file that is compiled.

//a.cpp
#include "b.cpp"
#include "c.cpp"
//and so on...

And since b.cpp and c.cpp aren’t compiled by themselves, this is OK.

I know this is not standard practice, I know the pitfalls and I probably wouldn’t do this (unless of course someone comes up with a good reason).

So the question is – what’s the use of this technique? Does it make compilation faster (also consider a distributed compilation environment)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:17:22+00:00Added an answer on June 8, 2026 at 11:17 am

    This is called a unity build.

    It’s supposed to speed up compilation of the source code.

    See a related question here that provides more details: The benefits / disadvantages of unity builds?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: how to write bat file to process all files include sub directory,
Possible Duplicate: Hyperlinks showing URL with Blueprint If i include blueprint all my link
Possible Duplicate: C/C++, can you #include a file into a string literal? I have
Possible Duplicate: Avoiding Circular Dependencies of header files Task.h: #ifndef Tasks_h #define Tasks_h #include
Possible Duplicate: include after PHP 404 header returning “Oops! This link appears to be
Possible Duplicate: How to include js file in another js file? Suppose I have
Possible Duplicate: How to use include within a function? i have two file inc.php
Possible Duplicate: Floating point issue in C #include<stdio.h> main() { int a,b; float f;
Possible Duplicate: Copy Constructor is not invoked # include <iostream> using namespace std; class
Possible Duplicate: get name of current PHP script in include file Can an included

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.