如何构建VS2005 CRT

来源:互联网 发布:12客淘宝推广平台 编辑:程序博客网 时间:2024/05/17 03:42

crt源代码位于安装目录的vc/crt/src目录下,VS2005 SP1附带的crt源码不能编译通过,需要如下修改:

 

1) In the SRC folder, two files need minor changes.  Open up the following two files in notepad and make these changes: 

a) in the MAKEFILE
 
    On lines 302, 303, 304, 307, 308 and 309, remove the -wx option
 
b) In the MAKEFILE.SUB
 
    On line 103 remove the -wx option

 

2) A file named unhandld.obj was inadvertently left out of the CRT source distribution.  To recover this file, we will extract it from the eh.lib library 
From a Visual Studio 2005 Command Prompt, do the following:
C:
CD /SRC
for %i in (dll mt xdll xmt) do pushd intel/%i_lib && lib /extract:../build/intel/%i_obj/unhandld.obj eh.lib && popd
 
原创粉丝点击