• 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: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:

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

  • 相关阅读:
    python class 的属性
    程序员7年和我的7点感想――我的程序人生
    LCD 调试总结 [转]
    shell sed 替换某行内容
    msm 模拟i2c使用过程分析
    高通平台USB host协议分析 之 一
    Linux文件查找命令find,xargs详述
    (翻译)Android属性系统
    内存对齐.结构体对齐
    python class 用法
  • 原文地址:https://www.cnblogs.com/riskyer/p/3241409.html
Copyright © 2020-2023  润新知