Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/124.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何解决gthr default.h的问题?_C++ - Fatal编程技术网

C++ 如何解决gthr default.h的问题?

C++ 如何解决gthr default.h的问题?,c++,C++,我对gthr默认设置有问题。我正在使用devc++。每当我在其中做一些事情时,都会出现以下错误: C:\Program Files(x86)\Dev Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\C++\x86_64-w64-mingw32\bits\gthr default.h在函数“int u gthread\u create(u gthread\u t*,void*(),void*)”中: C:\Program Files(x86

我对gthr默认设置有问题。我正在使用
devc++
。每当我在其中做一些事情时,都会出现以下错误:

C:\Program Files(x86)\Dev Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\C++\x86_64-w64-mingw32\bits\gthr default.h在函数“int u gthread\u create(u gthread\u t*,void*(),void*)”中:

C:\Program Files(x86)\Dev Cpp\MinGW64\lib\gcc\x86\u 64-w64-mingw32\4.9.2\include\C++\x86\u 64-w64-mingw32\bits\gthr default.h[错误]“NULL”未在此范围内声明


有人知道怎么做吗?

NULL
在stdef中定义。尝试在
gthr default.h
include.h之前添加
#include

把它放在我甚至都不包括的地方。你能展示你的代码吗?至少您不应该在自己的代码中包含
gthr default.h