1

好的,所以我在我的机器上安装了用于 C++ 开发的 CDT。我试图让它工作并按照这些说明进行设置。我错误地进入Project>Properties>C++ Build>Enviorement并错误地点击了恢复默认值。我不知道这是否改变了任何东西,但是当我上课时出现以下错误。

我试图将给定路径“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)
4

0 回答 0