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:Usersshu6889.CHNworkgitlab untime astercodesstudyGDALStudyDebugHelloWorld.exe" /INCREMENTAL /LIBPATH:C:Usersshu6889.CHNworkgitlab untime asterlibsusax86 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:Usersshu6889.CHNworkgitlab untime astercodesstudyGDALStudyDebugHelloWorld.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:C:Usersshu6889.CHNworkgitlab untime astercodesstudyGDALStudyDebugHelloWorld.lib" /MACHINE:X86 DebugHelloWorld.obj 1> Debugstdafx.obj 1> Creating library C:Usersshu6889.CHNworkgitlab untime astercodesstudyGDALStudyDebugHelloWorld.lib and object C:Usersshu6889.CHNworkgitlab untime astercodesstudyGDALStudyDebugHelloWorld.exp 1> GDALStudy.vcxproj -> C:Usersshu6889.CHNworkgitlab untime astercodesstudyGDALStudyDebugHelloWorld.exe
至于Link的选项,参考MSDN: