1. 程式人生 > >Qt 解決“is not a member of ‘std’”錯誤

Qt 解決“is not a member of ‘std’”錯誤

http://qtlinux.blog.51cto.com/3052744/573120

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

    錯誤原因是:C++標準庫實現有問題,解決方法如下:

    在主原始碼中加入:#include <stddef.h>

    然後出錯的地方,去掉 "std::"

    編譯通過。