那就给他返回一个空地址即可
原代码
- 编译环境Windows
- 目标编译平台Windows
- 编译工具Mingw5.3
- 报错文件io_win32.cc
- 报错行 94
template <typename char_type>
bool null_or_empty(const char_type* s) {
//TODO: nullptr error
return (s == nullptr || *s == 0);
}
函数本来要返回的是空指针但是却没有nullptr 在系统中空指针的值是0xCC(传说中的烫烫烫) 修改为0xCC就好了
template <typename char_type>
bool null_or_empty(const char_type* s) {
//TODO: nullptr error
return (s == 0xcc || *s == 0);
}