我不明白GNU g ++编译器错误“cc1plus:致命错误:......”

时间:2015-10-09 17:29:14

标签: c++ ubuntu-14.04 gnu-make gnu netbeans-8

我正处于将旧的Windows XP C / C ++程序移植到LINUX的最后阶段(我希望)。我在DateTime.cpp文件中编辑并测试了一个C ++类。在我的测试项目中它工作,所以我将编辑应用于我的工作项目。当我创建项目时,我得到一个我不理解的错误:

"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/programmer/NetBeansProjects/Flight4'
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/flight4
make[2]: Entering directory `/home/programmer/NetBeansProjects/Flight4'
mkdir -p build/Debug/GNU-Linux-x86
rm -f "build/Debug/GNU-Linux-x86/DateTime.o.d"
g++ -ffreestanding   -c -include /usr/local/include -MMD -MP -MF "build/Debug/GNU-Linux-x86/DateTime.o.d" -o build/Debug/GNU-Linux-x86/DateTime.o DateTime.cpp
cc1plus: fatal error: /usr/local/include: No such file or directory
compilation terminated.

/ usr / local / include存在; DateTime.cpp和DateTime.hpp位于本地项目目录

/home/programmer/NetBeansProjects/Flight4

该项目使用/ usr / local / lib中的几个.so库及其/ usr / local / include中的头文件。

我已经用C / C ++编写了大约5年的编码,当我使用RAD时,我不熟悉make文件。

编辑:Etan的评论就在按钮上:我已将/ usr / local / bin添加到属性向导中的错误位置。将其移至NetBeans Properties向导中的正确字段可解决问题。

0 个答案:

没有答案