Welcome

首页 / 软件开发 / C++ / Qt中is not a member of ‘std’错误的解决

Qt中is not a member of ‘std’错误的解决2013-11-04Qt教程(C++ GUI Qt 4)中,第15章例程,tripserver编译出错,提示是:“is not a member of ‘std’””错误。

错误原因是:C++标准库实现有问题,解决方法如下:

在主源代码中加入:#include <stddef.h>

然后出错的地方,去掉 "std::"

编译通过。