无法打开包括文件:“alloc.h”

来源:互联网 发布:小黑屋写作软件怎么样 编辑:程序博客网 时间:2024/05/16 04:14

问题描述:

 

1>------ 已启动生成: 项目: interpolation, 配置: Debug Win32 ------

1>正在编译...

1>interpolation.cpp

1>c:/documents and settings/renyanhua/my documents/visual studio 2008/projects/interpolation/interpolation/interpolation.cpp(3) : fatal error C1083: 无法打开包括文件:“alloc.h”: No such file or directory

1>生成日志保存在“file://c:/Documents and Settings/RenYanhua/My Documents/Visual Studio 2008/Projects/interpolation/interpolation/Debug/BuildLog.htm”

1>interpolation - 1 个错误,0 个警告

========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========

答案:
非常囧~~~~ 原因是没有“alloc.h”这个头文件,只需要多加一个M。
即 将 alloc.h 改成 malloc.h 即可!

原创粉丝点击