I am working on some code and am having trouble with MPLAB X finding my config file. I made a test project to play with and it has the same issues. When I try to build it I get this output:
CLEAN SUCCESSFUL (total time: 157ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `E:/MPLABXProjects/TStest.X'
make -f nbproject/Makefile-default.mk dist/default/production/TStest.X.production.hex
make[2]: Entering directory `E:/MPLABXProjects/TStest.X'
"C:\Program Files\Microchip\xc8\v1.32\bin\xc8.exe" --pass1 --chip=18F24K50 -Q -G --double=24 --float=24 --emi=wordwrite --opt=default,+asm,+asmfile,-speed,+space,-debug --addrqual=ignore --mode=free -P -N255 --warn=0 --asmlist --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,+plib --output=-mcof,+elf:multilocs --stack=compiled:auto:auto:auto "--errformat=%%f:%%l: error: (%%n) %%s" "--warnformat=%%f:%%l: warning: (%%n) %%s" "--msgformat=%%f:%%l: advisory: (%%n) %%s" -obuild/default/production/main.p1 main.c
(908) exit status = 1
make[2]: *** [build/default/production/main.p1] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
main.c:8: error: (141) can't open include file "config.h": No such file or directory
make[2]: Leaving directory `E:/MPLABXProjects/TStest.X'
make[1]: Leaving directory `E:/MPLABXProjects/TStest.X'
BUILD FAILED (exit value 2, total time: 1s)
config.h is in the project folder, E:/MPLABXProjects/TStest.X
Please help me get this to find my files and build.
CLEAN SUCCESSFUL (total time: 157ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `E:/MPLABXProjects/TStest.X'
make -f nbproject/Makefile-default.mk dist/default/production/TStest.X.production.hex
make[2]: Entering directory `E:/MPLABXProjects/TStest.X'
"C:\Program Files\Microchip\xc8\v1.32\bin\xc8.exe" --pass1 --chip=18F24K50 -Q -G --double=24 --float=24 --emi=wordwrite --opt=default,+asm,+asmfile,-speed,+space,-debug --addrqual=ignore --mode=free -P -N255 --warn=0 --asmlist --summary=default,-psect,-class,+mem,-hex,-file --output=default,-inhx032 --runtime=default,+clear,+init,-keep,-no_startup,-download,+config,+clib,+plib --output=-mcof,+elf:multilocs --stack=compiled:auto:auto:auto "--errformat=%%f:%%l: error: (%%n) %%s" "--warnformat=%%f:%%l: warning: (%%n) %%s" "--msgformat=%%f:%%l: advisory: (%%n) %%s" -obuild/default/production/main.p1 main.c
(908) exit status = 1
make[2]: *** [build/default/production/main.p1] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
main.c:8: error: (141) can't open include file "config.h": No such file or directory
make[2]: Leaving directory `E:/MPLABXProjects/TStest.X'
make[1]: Leaving directory `E:/MPLABXProjects/TStest.X'
BUILD FAILED (exit value 2, total time: 1s)
config.h is in the project folder, E:/MPLABXProjects/TStest.X
Please help me get this to find my files and build.