在Windows 8 64 bit下执行boost_1_53_0的bootstrap.bat出现了jam0.exe执行错误
搜索网页发现需要修改两处文件:
tools/build/v2/engine/filent.c
将line 82中的long修改成intptr_t
PATHNAME f;
string filespec[ 1 ];
string filename[ 1 ];
intptr_t handle;
int ret;
struct _finddata_t finfo[ 1 ];
LIST * files = L0;
int d_length;tools/build/v2/engine/mem.h
将line 64下添加#include <stdlib.h>
/* Standard C memory allocation. */ #include <stdlib.h> #define bjam_malloc_x(s) malloc(s) #define bjam_calloc_x(n,s) calloc(n,s) #define bjam_realloc_x(p,s) realloc(p,s) #define bjam_free_x(p) free(p)
重新执行脚本,通过了