Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I avoid exceeding the internal ILK size limit in visual studio?

Building a large project in Visual Studio 2005, I am getting an error in incremental linking:

LINK : fatal error LNK1210: exceeded internal ILK size limit; link with /INCREMENTAL:NO

Do you know of any options other than avoiding incremental linking? In particular, are there practices that will reduce the size of the internal ILK data?

like image 478
Brad Payne Avatar asked Sep 18 '25 00:09

Brad Payne


2 Answers

Try to add /LTCG flag to the linker

like image 200
Bogdan M. Avatar answered Sep 19 '25 22:09

Bogdan M.


/LTCG is not valid for use with /INCREMENTAL according to MSDN.

http://msdn.microsoft.com/en-us/library/xbf3tbeh(v=vs.80).aspx

like image 33
Andreas Johansson Avatar answered Sep 19 '25 22:09

Andreas Johansson