Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从Cygwin下载了C/C++ 库,并根据此处的说明在 NetBeans 中设置环境变量。
我也经历过这个。
实际上,我在另一台机器上遵循了相同的步骤,一切正常。但是在我的机器上没有建立关联。例如:#include<stdio.h>说No such file or directory。
#include<stdio.h>
No such file or directory
知道问题可能是什么吗?
我下载的Cygwin包也不错,我下载了两次。
如果它抱怨#include,那是编译问题,而不是链接问题。
如果您创建一个新的 C/C++ 应用程序项目并尝试构建它会发生什么?
在项目属性的 Build 节点中,是否选择了正确的 Tool Collection?(在你的情况下是 Cygwin)。C/C++ 选项卡上的工具 -> 选项是否正确设置了该工具集?
你应该检查你是否有一个文件c:\cygwin\usr\include\stdio.h。
c:\cygwin\usr\include\stdio.h