我正在尝试用猫鼬编译示例中提供的 hello.c。我不断收到错误:
mongoose.c:4752:27: error: '_strtoi64' was not declared in this scope
我查看了 mongoose.c 并_strtoi64
在第 109 行定义:
#if defined(_MSC_VER) && _MSC_VER < 1300
#define STRX(x) #x
#define STR(x) STRX(x)
#define __func__ __FILE__ ":" STR(__LINE__)
#define strtoull(x, y, z) strtoul(x, y, z)
#define strtoll(x, y, z) strtol(x, y, z)
#else
#define __func__ __FUNCTION__
#define strtoull(x, y, z) _strtoui64(x, y, z)
#define strtoll(x, y, z) _strtoi64(x, y, z)
#endif // _MSC_VER
我尝试在 if 定义之外定义,但我得到了同样的错误。
我看到了:
链接
但它看起来像我已经有这个“修复”的代码版本。
我查看了其他一些介绍猫鼬的问题,但我没有遇到任何问题。
提前致谢