1
我试图编译是根据与猫鼬的例子所提供的的hello.c。我不断收到错误:猫鼬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
我试图定义出方的定义,如果,但我得到了同样的错误。
我看到: link 但它看起来像我已经在那里这个“修复”的代码版本。
我看了一些其他的前奏猫鼬的问题,但我并没有遇到任何的问题。
在此先感谢
我没有使用MVC++,但你让我意识到,我是用G ++而不是GCC。谢谢! – georges 2013-03-26 14:46:05