在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)

重新执行脚本,通过了

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2022-01-09
  • 2021-05-18
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
猜你喜欢
  • 2021-06-10
  • 2021-07-10
  • 2021-12-15
  • 2022-02-27
  • 2022-12-23
  • 2021-09-12
  • 2022-01-19
相关资源
相似解决方案