Jump to content
  • Advertisement
Sign in to follow this  
Endemoniada

C++ Visual Studio Generating Code/Compiling Multiple Times

Recommended Posts

Hi guys,

 

This is really annoying. When I clean and rebuild VS does something like this:

1>------ Rebuild All started: Project: Castle, Configuration: Debug Win32 ------

1>  StdAfx.cpp
1>  Vector.cpp

...

...

1>  Generating Code...
1>  Compiling...
1>  Bitmap.cpp

1>  Generating Code...
1>  Castle.vcxproj -> C:\Code\Projects\Castle\Debug\Castle.exe

Notice how it compiles, then generates code, then compiles (usually one or two) more files, then generates code again. Why is it doing that ? In other projects is doesn't and I can't see any difference between them, I've tried a lot of things.

Thanks.

Share this post


Link to post
Share on other sites
Advertisement

As far as I can tell, it batches up a handful of C++ files, then generates code for that batch all at once.  But the batch size is limited, so you see more Generating Code the larger the project is.  Nothing's going wrong.

Edited by Nypyren

Share this post


Link to post
Share on other sites

Hi Nypyren,

 

That seems to be exactly what's happening. Once I added another file or two I noticed it, it seemed out of the ordinary so I thought something was wrong. Thanks a lot.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!