2013-07-09 107 views
2

我试图让我的控制台程序在我们的Windows XP实验室计算机上运行。我安装Visual Studio来使用v110_xp平台工具集,并固定链接器\ SYSTEM \最低版本是5.01,这是从dumpin明确表示,为结束:MSVCP100.dll丢失

PE signature found 

File Type: EXECUTABLE IMAGE 

FILE HEADER VALUES 
      14C machine (x86) 
       5 number of sections 
     51DBD863 time date stamp Tue Jul 09 11:31:15 2013 
       0 file pointer to symbol table 
       0 number of symbols 
       E0 size of optional header 
      102 characteristics 
        Executable 
        32 bit word machine 

OPTIONAL HEADER VALUES 
      10B magiC# (PE32) 
      11.00 linker version 
      6600 size of code 
      4600 size of initialized data 
       0 size of uninitialized data 
      69D7 entry point (004069D7) _mainCRTStartup 
      1000 base of code 
      8000 base of data 
      400000 image base (00400000 to 0040DFFF) 
      1000 section alignment 
      200 file alignment 
      5.01 operating system version 
      0.00 image version 
      5.01 subsystem version 
       0 Win32 version 
      E000 size of image 
      400 size of headers 
       0 checksum 
       3 subsystem (Windows CUI) 
      8140 DLL characteristics 
        Dynamic base 
        NX compatible 
        Terminal Server Aware 
      100000 size of stack reserve 
      1000 size of stack commit 
      100000 size of heap reserve 
      1000 size of heap commit 
       0 loader flags 
       10 number of directories 
       0 [  0] RVA [size] of Export Directory 
      96C0 [  50] RVA [size] of Import Directory 
      C000 [  1E0] RVA [size] of Resource Directory 
       0 [  0] RVA [size] of Exception Directory 
       0 [  0] RVA [size] of Certificates Directory 
      D000 [  864] RVA [size] of Base Relocation Directory 
      8260 [  38] RVA [size] of Debug Directory 
       0 [  0] RVA [size] of Architecture Directory 
       0 [  0] RVA [size] of Global Pointer Directory 
       0 [  0] RVA [size] of Thread Storage Directory 
      8778 [  40] RVA [size] of Load Configuration Directory 
       0 [  0] RVA [size] of Bound Import Directory 
      8000 [  224] RVA [size] of Import Address Table Directory 
       0 [  0] RVA [size] of Delay Import Directory 
       0 [  0] RVA [size] of COM Descriptor Directory 
       0 [  0] RVA [size] of Reserved Directory 


SECTION HEADER #1 
    .text name 
    6525 virtual size 
    1000 virtual address (00401000 to 00407524) 
    6600 size of raw data 
    400 file pointer to raw data (00000400 to 000069FF) 
     0 file pointer to relocation table 
     0 file pointer to line numbers 
     0 number of relocations 
     0 number of line numbers 
60000020 flags 
     Code 
     Execute Read 

SECTION HEADER #2 
    .rdata name 
    2B5C virtual size 
    8000 virtual address (00408000 to 0040AB5B) 
    2C00 size of raw data 
    6A00 file pointer to raw data (00006A00 to 000095FF) 
     0 file pointer to relocation table 
     0 file pointer to line numbers 
     0 number of relocations 
     0 number of line numbers 
40000040 flags 
     Initialized Data 
     Read Only 

    Debug Directories 

     Time Type  Size  RVA Pointer 
    -------- ------ -------- -------- -------- 
    51DBD863 cv   55 000087C0  71C0 Format: RSDS, {9BD50A2E-49E1-4 
72A-8D90-4383C3D528BE}, 5, C:\Dropbox\Uni\Bachelor\AD9914\c++\AD9914\Release\AD9 
914.pdb 
    51DBD863 feat   10 00008818  7218 Counts: Pre-VC++ 11.00=0, C/C+ 
+=29, /GS=29, /sdl=0 

SECTION HEADER #3 
    .data name 
    7E8 virtual size 
    B000 virtual address (0040B000 to 0040B7E7) 
    600 size of raw data 
    9600 file pointer to raw data (00009600 to 00009BFF) 
     0 file pointer to relocation table 
     0 file pointer to line numbers 
     0 number of relocations 
     0 number of line numbers 
C0000040 flags 
     Initialized Data 
     Read Write 

SECTION HEADER #4 
    .rsrc name 
    1E0 virtual size 
    C000 virtual address (0040C000 to 0040C1DF) 
    200 size of raw data 
    9C00 file pointer to raw data (00009C00 to 00009DFF) 
     0 file pointer to relocation table 
     0 file pointer to line numbers 
     0 number of relocations 
     0 number of line numbers 
40000040 flags 
     Initialized Data 
     Read Only 

SECTION HEADER #5 
    .reloc name 
    E5E virtual size 
    D000 virtual address (0040D000 to 0040DE5D) 
    1000 size of raw data 
    9E00 file pointer to raw data (00009E00 to 0000ADFF) 
     0 file pointer to relocation table 
     0 file pointer to line numbers 
     0 number of relocations 
     0 number of line numbers 
42000040 flags 
     Initialized Data 
     Discardable 
     Read Only 

    Summary 

     1000 .data 
     3000 .rdata 
     1000 .reloc 
     1000 .rsrc 
     7000 .text 

我仍然得到错误与丢失MSVCP110.dll。这可能导致被解决的问题是将“x86 \ Microsoft.VC110.CRT”dll与我的程序一起发布,但有没有人有过这个问题的更优雅的解决方案?

最佳 泰斯

+1

为什么你想避免安装(和卸载)所需的DLL的安装程序是非常不清楚的,大多数Windows用户期望一个。但只需将DLL复制到与EXE相同的文件夹中即可。如果你自己没有使用DLL,那么只需通过编译/ MT来完全避免依赖。你的问题的标题非常具有误导性。 –

+0

不确定它如何比为您使用的运行时提供安装程序更优雅? – stijn

回答

1

您需要通过用户或者提供可再发行组件包DLL安装或发布你与你的程序中使用的DLL文件,并将它们旁边.exe安装。