Cannot activate incremental link - please help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Alex Shturm (news_at_shturm.com)
Date: 05/18/04


Date: Tue, 18 May 2004 05:01:30 GMT

Hi,

I am trying to activate incremental link using VC7 (.NET 2003) on a pretty big
project (executable size is more than 100Mb, and it gets linked from several
dozen of libraries and object files of different sizes - from less than 1Mb to
tens of MBs).

The problem is that option /incremental:yes does not have any effect on the
link time. I observe that the linker removes existing executable and re-links
it from scratch.

I looked in the Usenet groups and found a couple of relevant e-mail threads:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&th=3ac582c06f9bae6b&seekm=uh2iWC94DHA.1504%40TK2MSFTNGP12.phx.gbl#link1
http://groups.google.com/groups?q=incremental+linking+.net&hl=en&lr=&ie=UTF-8&c2coff=1&selm=%23hvmhCJLEHA.2588%40TK2MSFTNGP10.phx.gbl&rnum=1

So, as suggested, I tried to add /test to the link line to get the reason for
link's behavior. And this is the reason I've got:
LINK : LNK6003: LINK options changed; performing full link

The funny thing is that link options DID NOT change. I just added an empty
line to one of source files and run make with the same makefile (we don't use
IDE).

Maybe the reason for link's confusion is a very long link line (14K chars) ?

Anybody @ Microsoft, could you please let me know what I can do to enable
incremental link?

Thank you,
Alex



Relevant Pages