Visual Studio Generating Code/Compiling Multiple Times

Started by
3 comments, last by Endemoniada 6 years, 4 months ago

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.

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.

Could be multi-threading your compiling.  Is MP (think it's MP) switch set?

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety." --Benjamin Franklin

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.

This topic is closed to new replies.

Advertisement