How to improve link performance for a large C++ application in VS2005

前端 未结 15 1507
野的像风
野的像风 2020-12-02 11:30

We have fairly large C++ application which is composed of about 60 projects in Visual Studio 2005. It currently takes 7 minutes to link in Release mode and I would like to t

15条回答
  •  抹茶落季
    2020-12-02 12:16

    I had solved my link problem and share to all of you.

    My project's link time was 7 min with /Incremental:no linking (link time 7min).

    Was 15 min with /Incremental, (link time 7min, embeded manifest time 7min). So I turn off the inremental.

    I found Additional dependencies has a.lib AND ignore specific libraries has, too!

    So I remove it from Ignore specific libraries turn on the /incremental. first link time need 5min but embeded manifest time has none.

    I don't know why, but the incremental linking has worked.

    I rollback all project code , so I could find the problem by the lib. If you do all of above, you can try my method. Good luck!

提交回复
热议问题