visual-studio 如何在 Visual Studio 的构建输出中显示链接器命令行?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1319972/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to show linker command line in Build output, in Visual Studio?
提问by Cheeso
This question is related to How to show command line build options in Visual C++ 2008
此问题与 如何在 Visual C++ 2008 中显示命令行构建选项有关
But in addition to showing the Compiler command line, I'd like to see the linkercommand line.
但除了显示编译器命令行之外,我还想查看链接器命令行。
I have "unset" the /nologo option in the linker options.
我在链接器选项中“取消设置”了 /nologo 选项。
But I still don't get the command line in the output window. What do I need to do? Is this possible?
但是我仍然没有在输出窗口中获得命令行。我需要做什么?这可能吗?
采纳答案by 1800 INFORMATION
Did you try viewing the build log? This is probably the closest to what you want to see. You view the output window, and where it says "Build log was saved at "path..."", ctrl-click on "path" and it will open the build log.
您是否尝试查看构建日志?这可能是最接近你想看到的。您查看输出窗口,并在其中显示“构建日志已保存在“路径...””处,按住 ctrl 单击“路径”,它将打开构建日志。
回答by stu
I often get burned by the wrong configuration being selected when I change things like suppress startup banner. Did you try setting the selection when all configurations and platforms were selected?
当我更改诸如抑制启动横幅之类的内容时,我经常被选择的错误配置所困扰。选择所有配置和平台后,您是否尝试设置选择?


