none
vs2008下编译,使用\verbose:lib,searching libraries重复的问题 RRS feed

  • 问题

  • vs2008 IDE 操作系统是xp sp3 建立的是win32 control application empty project

    然后写了个hello world程序进去,命令行加入\verbose:lib,编译。

    code:
    #include <iostream>
    int main()
    {
    std::cout << "hello world!" << std::endl;
    return 0;
    }
    编译情况:
    ------ Build started: Project: TestLinkLibCv, Configuration: Release Win32 ------
    Compiling...
    main.cpp
    Linking...
    Searching libraries
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
    Finished searching libraries
    Generating code
    Finished generating code
    Searching libraries
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
    Finished searching libraries
    Searching libraries
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
      Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
      Searching D:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
    Finished searching libraries
    Embedding manifest...
    Build log was saved at "file://d:\programs\TestLinkLibCv\TestLinkLibCv\Release\BuildLog.htm"
    TestLinkLibCv - 0 error(s), 0 warning(s)
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

     

     

    在Finished searching libraries前面,那些库都search了两次,请问为什么要search两次呢?

    提前谢谢了

    2010年8月6日 1:56

全部回复