VS 2012 显示Link的参数

VC 通过Link将cl编译出来的.obj文件链接到一起。不过默认设置还是看不到究竟是怎么做的。需要如下设置:

右键点击工程,选择Properties菜单,然后选择左边的Linker->General,然后看右边,将Suppress Startup Banner设置为No.

现在重新编译工程,可以看到类似下面的信息:

1>Link:
1> Microsoft (R) Incremental Linker Version 11.00.60610.1
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> "/OUT:C:\Users\shu6889.CHN\work\gitlab\runtime\raster\codes\study\GDALStudy\Debug\HelloWorld.exe" /INCREMENTAL /LIBPATH:C:\Users\shu6889.CHN\work\gitlab\runtime\raster\libs\usa\x86 gdal_id.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG "/PDB:C:\Users\shu6889.CHN\work\gitlab\runtime\raster\codes\study\GDALStudy\Debug\HelloWorld.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:C:\Users\shu6889.CHN\work\gitlab\runtime\raster\codes\study\GDALStudy\Debug\HelloWorld.lib" /MACHINE:X86 Debug\HelloWorld.obj
1> Debug\stdafx.obj
1> Creating library C:\Users\shu6889.CHN\work\gitlab\runtime\raster\codes\study\GDALStudy\Debug\HelloWorld.lib and object C:\Users\shu6889.CHN\work\gitlab\runtime\raster\codes\study\GDALStudy\Debug\HelloWorld.exp
1> GDALStudy.vcxproj -> C:\Users\shu6889.CHN\work\gitlab\runtime\raster\codes\study\GDALStudy\Debug\HelloWorld.exe

至于Link的选项,参考MSDN:

http://msdn.microsoft.com/en-us/library/y0zzbyt4.aspx

上一篇:Asp.net MVC 4 动作方法结果


下一篇:uva11549 Floyd判圈法