Skip to main content
gamedev.net
🔒 Locked

Visual Studio Generating Code/Compiling Multiple Times

Started by Endemoniada 3 replies 1.7k views
Original Post
Endemoniada
Endemoniada

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.

Nypyren
Nypyren

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.

CrazyCdn
CrazyCdn

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
Endemoniada
Endemoniada

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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.