如何在VS 2012中查看c++链接命令

How to see c++ link command in VS 2012

本文关键字:c++ 链接 命令 VS 2012      更新时间:2023-10-16

我可以通过在IDE中将Supress Startup Banner设置为"No"来查看完整的cl命令。但刚刚得到链接的以下信息

>Link:
1>     Creating library C:Usersshu6889.CHNworkgitlabruntimerastercodesstudyGDALStudyDebugHelloWorld.lib and object C:Usersshu6889.CHNworkgitlabruntimerastercodesstudyGDALStudyDebugHelloWorld.exp
1>  GDALStudy.vcxproj -> C:Usersshu6889.CHNworkgitlabruntimerastercodesstudyGDALStudyDebugHelloWorld.exe

如何显示完整链接命令?

选择您的项目,转到属性,单击Linker,选项显示在右侧。第二种选择应该是:

Show Progress     Not Set

将该选项更改为/VERBOSE,即可获得几乎所有内容。请随意测试其他选项,看看会发生什么。