天天看点

Qt 解决“is not a member of ‘std’”错误

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

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

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

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

    编译通过。