Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果启用了增量链接,Visual C++ 会在 $(TargetDir) 中生成 *.ilk 文件,我可以覆盖此行为并将其重定向到另一个目录吗?(不使用构建后步骤)
在 Visual C++ 6.0 和 Visual C++ 2008 中,无法为 ilk 文件选择不同的目录。增量链接的有效选项是/INCREMENTAL:YES和/INCREMENTAL:NO。
/INCREMENTAL:YES
/INCREMENTAL:NO
此外,如果您创建后期构建步骤以将 ilk 文件移动到不同的位置,Visual C++ 将不会意识到这一点,因此与完全禁用增量链接相同,因为 Visual C++ 将找不到 ilk 文件。
HTH。