-
April 11th, 2005, 09:44 PM
#1
VC++ takes forever to link
Several months ago, VC++ started taking a really long time to link my project - I timed it at SIX MINUTES for a one-line change in a .cpp file. Before that, linking only took a few seconds. I have no idea what changed to increase the link time so drastically, but I'm really tired of wasting so much time. Could there be a setting within the VC++ IDE or a project setting that could have caused this?
It's not Browse Info - turning that off has no impact.
-
April 11th, 2005, 11:42 PM
#2
Re: VC++ takes forever to link
look for precompiled headers and incremental link
-
April 12th, 2005, 01:24 AM
#3
Re: VC++ takes forever to link
Does it compile only one CPP file?
There may be case you change in some header file, and that header file is dependent of rest (or most) of the project.
Also (you did not mention), if the source file you are changing is in DLL project and the Application is dependent (with one or more level), it will surely take time to compile and link!
-
April 12th, 2005, 03:53 PM
#4
Re: VC++ takes forever to link
Thanks, turning off incremental link helped a little bit. Now I'm down to 4 1/2 minutes:
"Linking..." 1.5 minutes
"Creating library APPNAME.lib and object APPNAME.exp" 3 minutes
Yes, it compiles only one .cpp file - takes about 20 seconds (not included in the times stated above). This is not a DLL project.
How do I "look for precompiled headers"?
-
April 12th, 2005, 03:57 PM
#5
Re: VC++ takes forever to link
Originally Posted by pates
How do I "look for precompiled headers"?
On VC 6, Project Settings->C/C++ tab, in the combo look for precompiled headers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|