Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/151.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
make:**[src/Class.o]错误1 < > OK,所以我在我的机器上安装了CDT来进行C++开发。我试着让它工作,然后按照这些来设置一切。我错误地进入了Project>Properties>C++Build>environment,错误地点击了restorefaults。我不知道这是否改变了什么,但是当我运行我的类时,我得到了以下错误_C++_Eclipse_Eclipse Cdt - Fatal编程技术网

make:**[src/Class.o]错误1 < > OK,所以我在我的机器上安装了CDT来进行C++开发。我试着让它工作,然后按照这些来设置一切。我错误地进入了Project>Properties>C++Build>environment,错误地点击了restorefaults。我不知道这是否改变了什么,但是当我运行我的类时,我得到了以下错误

make:**[src/Class.o]错误1 < > OK,所以我在我的机器上安装了CDT来进行C++开发。我试着让它工作,然后按照这些来设置一切。我错误地进入了Project>Properties>C++Build>environment,错误地点击了restorefaults。我不知道这是否改变了什么,但是当我运行我的类时,我得到了以下错误,c++,eclipse,eclipse-cdt,C++,Eclipse,Eclipse Cdt,我尝试将给定路径“C:\Users\Nathan\workspace\Project\Debug”中的斜杠切换为正向斜杠,但没有任何效果。我仍然会犯同样的错误。有什么关于我做错了什么的提示吗 19:12:58 **** Incremental Build of configuration Debug for project Project **** make all Building file: ../src/Project.cpp Invoking: Cross G++ Compiler g

我尝试将给定路径“C:\Users\Nathan\workspace\Project\Debug”中的斜杠切换为正向斜杠,但没有任何效果。我仍然会犯同样的错误。有什么关于我做错了什么的提示吗

19:12:58 **** Incremental Build of configuration Debug for project Project ****
make all 
Building file: ../src/Project.cpp
Invoking: Cross G++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Project.d" -MT"src/Project.d" -o "src/Project.o" "../src/Project.cpp"
cygwin warning:
  MS-DOS style path detected: C:\Users\Nathan\workspace\Project\Debug
  Preferred POSIX equivalent is: /cygdrive/c/Users/Nathan/workspace/Project/Debug
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cwchar:44:0,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/bits/postypes.h:42,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iosfwd:42,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ios:39,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/ostream:40,
                 from /usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/iostream:40,
                 from ../src/Project.cpp:9:
/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/cstddef:44:20: fatal error: stddef.h: No such file or directory
src/subdir.mk:18: recipe for target `src/Project.o' failed
compilation terminated.
make: *** [src/Project.o] Error 1

19:12:59 Build Finished (took 535ms)

这表示您的计算机上不存在stddef.h。是吗?是的,它不在那里。我只是不明白为什么。我该如何解决这个问题呢?找出哪个Cygwin软件包包含它,然后安装它。我找不到它的位置,我试着在网上查找,但大多数有类似问题的人都在linux上。我还安装了大部分来自CygWin的开发(除了一些没有提到C++或G+等的大文件),我不认为它是在其中的一个文件中。至少我希望不会。