• AVR Freaks

Hot!Cannot compiling

Author
Nikkito
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2019/03/10 11:43:33
  • Location: 0
  • Status: offline
2019/04/19 11:50:57 (permalink)
0

Cannot compiling

Hi
I am a new user of MPLAB X IDE v5.15 with XC8 (v2.05).
Then I have:
1. made a new project -> Microchip Embedded -> Standalone Project
2. chose my chip: PIC 16F1779
3. selcted my tool: ICD3
4. Selectet the compiler: XC8
5. selected the Project Name
So far everything has worked. The project was created.
Then I Have:
6. in the tab "Project", in the folder "Source Files" with -> new -> main.c a new main file generated
This look simple like this:
/*
 * File:   Newman.c
 * Author: Rene
 *
 * Created on 19. April 2019, 17:45
 */
#include <xc.h>
void main(void) {
    return;
}
 
Now, at first, I'm surprised that the #include <xc.h> is underlined red. With the cursor over the blub says: Cannot finde include file <xc.h>
Why this?? What is wrong??
 
Next, I press F11. 
I get a long error message:
 
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'D:/Benutzer/Ren�/MPLABXProjects/Ich_Teste.X'
make  -f nbproject/Makefile-default.mk dist/default/production/Ich_Teste.X.production.hex
make[2]: Entering directory 'D:/Benutzer/Ren�/MPLABXProjects/Ich_Teste.X'
"C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=16LF1779 -c  -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall   -std=c99 -gdwarf-3 -mstack=compiled:auto:auto     -o build/default/production/newmain.p1 newmain.c
[Logging clang options] "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\bin\\clang.exe" "-cc1" "-triple" "pic" "-E" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "newmain.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-no-integrated-as" "-mconstructor-aliases" "-dwarf-column-info" "-debugger-tuning=gdb" "-resource-dir" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\bin\\..\\lib\\clang\\4.0.1" "-dependency-file" "build/default/production\\newmain.d" "-MT" "build/default/production\\newmain.i" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\c99" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\legacy" "-include" "language_support.h" "-U" "__GNUC__" "-D" "__CLANG__" "-D" "__PICC__" "-D" "__PICCPRO__" "-D" "XPRJ_default=default" "-D" "_OMNI_CODE_" "-D" "__STACK_COMPILED=1" "-D" "__STACK_HYBRID=2" "-D" "__STACK_REENTRANT=4" "-D" "__STACK=__STACK_COMPILED" "-D" "__ADDRQUAL_IGNORE=1" "-D" "__ADDRQUAL_REQUEST=2" "-D" "__ADDRQUAL_REQUIRE=4" "-D" "__ADDRQUAL_REJECT=8" "-D" "__ADDRQUAL=__ADDRQUAL_IGNORE" "-D" "__XC" "-D" "__XC8" "-D" "__XC__" "-D" "__XC8__" "-D" "__XC8_VERSION=2050" "-D" "HI_TECH_C" "-D" "__OPTIM_FLAGS=0x400103" "-D" "__OPTIM_NONE=0x0" "-D" "__OPTIM_ASM=0x1" "-D" "__OPTIM_ASMFILE=0x2" "-D" "__OPTIM_SPEED=0x20000" "-D" "__OPTIM_3=0x20000" "-D" "__OPTIM_SPACE=0x40000" "-D" "__OPTIM_SIZE=0x40000" "-D" "__OPTIM_S=0x40000" "-D" "__OPTIM_DEBUG=0x80000" "-D" "__OPTIM_G=0x80000" "-D" "__OPTIM_LOCAL=0x200000" "-D" "__OPTIM_1=0x100" "-D" "__OPTIM_2=0x200" "-D" "__OPTIM_LEVEL=0" "-D" "_CLIB_VERSION=1999" "-D" "_16LF1779" "-D" "__16LF1779" "-D" "__16LF1779__" "-D" "_MPC_" "-D" "__XC" "-D" "__XC8" "-D" "_HAS_INT24" "-D" "_PIC14E" "-U" "__SIZEOF_CHAR__" "-U" "__SIZEOF_SHORT__" "-U" "__SIZEOF_INT__" "-U" "__SIZEOF_SHORT_LONG__" "-U" "__SIZEOF__INT24__" "-U" "__SIZEOF___INT24__" "-U" "__SIZEOF_LONG__" "-U" "__SIZEOF_LONG_LONG__" "-U" "__SIZEOF_FLOAT__" "-U" "__SIZEOF_DOUBLE__" "-U" "__SIZEOF_LONG_DOUBLE__" "-D" "__SIZEOF_CHAR__=1" "-D" "__SIZEOF_SHORT__=2" "-D" "__SIZEOF_INT__=2" "-D" "__SIZEOF_SHORT_LONG__=3" "-D" "__SIZEOF_INT24__=3" "-D" "__SIZEOF___INT24__=3" "-D" "__SIZEOF_LONG__=4" "-D" "__SIZEOF_LONG_LONG__=8" "-D" "__SIZEOF_FLOAT__=4" "-D" "__SIZEOF_DOUBLE__=4" "-D" "__SIZEOF_LONG_DOUBLE__=4" "-D" "_COMMON_=1" "-D" "_COMMON_ADDR_=112" "-D" "_COMMON_SIZE_=16" "-D" "_BANKCOUNT_=32" "-D" "_BANKBITS_=5" "-D" "_GPRCOUNT_=26" "-D" "_GPRBITS_=4" "-D" "__DATABANK=3" "-D" "__FLASHTYPE=2" "-D" "_ROMSIZE=16384" "-D" "_EEPROMSIZE=0" "-D" "EEPROM_SIZE=0" "-D" "_NVMREG_INT=2" "-D" "_EEREG_INT=1" "-D" "_NOREG_INT=0" "-D" "_EEPROM_INT=0" "-D" "_FLASH_ERASE_SIZE=32" "-D" "_FLASH_WRITE_SIZE=32" "-std=c99" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir" "D:\\Benutzer\\René\\MPLABXProjects\\Ich_Teste.X" "-ferror-limit" "19" "-fmessage-length" "0" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-o" "build/default/production\\newmain.i" "-x" "c" "newmain.c"
[Logging clang options] "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\bin\\clang.exe" "-cc1" "-triple" "pic" "-S" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "newmain.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-no-integrated-as" "-mconstructor-aliases" "-dwarf-column-info" "-debugger-tuning=gdb" "-coverage-notes-file" "D:\\Benutzer\\René\\MPLABXProjects\\Ich_Teste.X\\build/default/production\\newmain.gcno" "-resource-dir" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\bin\\..\\lib\\clang\\4.0.1" "-dependency-file" "build/default/production\\newmain.d" "-MT" "build/default/production\\newmain.p1" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\c99" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\legacy" "-include" "language_support.h" "-U" "__GNUC__" "-D" "__CLANG__" "-D" "__PICC__" "-D" "__PICCPRO__" "-D" "XPRJ_default=default" "-D" "_OMNI_CODE_" "-D" "__STACK_COMPILED=1" "-D" "__STACK_HYBRID=2" "-D" "__STACK_REENTRANT=4" "-D" "__STACK=__STACK_COMPILED" "-D" "__ADDRQUAL_IGNORE=1" "-D" "__ADDRQUAL_REQUEST=2" "-D" "__ADDRQUAL_REQUIRE=4" "-D" "__ADDRQUAL_REJECT=8" "-D" "__ADDRQUAL=__ADDRQUAL_IGNORE" "-D" "__XC" "-D" "__XC8" "-D" "__XC__" "-D" "__XC8__" "-D" "__XC8_VERSION=2050" "-D" "HI_TECH_C" "-D" "__OPTIM_FLAGS=0x400103" "-D" "__OPTIM_NONE=0x0" "-D" "__OPTIM_ASM=0x1" "-D" "__OPTIM_ASMFILE=0x2" "-D" "__OPTIM_SPEED=0x20000" "-D" "__OPTIM_3=0x20000" "-D" "__OPTIM_SPACE=0x40000" "-D" "__OPTIM_SIZE=0x40000" "-D" "__OPTIM_S=0x40000" "-D" "__OPTIM_DEBUG=0x80000" "-D" "__OPTIM_G=0x80000" "-D" "__OPTIM_LOCAL=0x200000" "-D" "__OPTIM_1=0x100" "-D" "__OPTIM_2=0x200" "-D" "__OPTIM_LEVEL=0" "-D" "_CLIB_VERSION=1999" "-D" "_16LF1779" "-D" "__16LF1779" "-D" "__16LF1779__" "-D" "_MPC_" "-D" "__XC" "-D" "__XC8" "-D" "_HAS_INT24" "-D" "_PIC14E" "-U" "__SIZEOF_CHAR__" "-U" "__SIZEOF_SHORT__" "-U" "__SIZEOF_INT__" "-U" "__SIZEOF_SHORT_LONG__" "-U" "__SIZEOF__INT24__" "-U" "__SIZEOF___INT24__" "-U" "__SIZEOF_LONG__" "-U" "__SIZEOF_LONG_LONG__" "-U" "__SIZEOF_FLOAT__" "-U" "__SIZEOF_DOUBLE__" "-U" "__SIZEOF_LONG_DOUBLE__" "-D" "__SIZEOF_CHAR__=1" "-D" "__SIZEOF_SHORT__=2" "-D" "__SIZEOF_INT__=2" "-D" "__SIZEOF_SHORT_LONG__=3" "-D" "__SIZEOF_INT24__=3" "-D" "__SIZEOF___INT24__=3" "-D" "__SIZEOF_LONG__=4" "-D" "__SIZEOF_LONG_LONG__=8" "-D" "__SIZEOF_FLOAT__=4" "-D" "__SIZEOF_DOUBLE__=4" "-D" "__SIZEOF_LONG_DOUBLE__=4" "-D" "_COMMON_=1" "-D" "_COMMON_ADDR_=112" "-D" "_COMMON_SIZE_=16" "-D" "_BANKCOUNT_=32" "-D" "_BANKBITS_=5" "-D" "_GPRCOUNT_=26" "-D" "_GPRBITS_=4" "-D" "__DATABANK=3" "-D" "__FLASHTYPE=2" "-D" "_ROMSIZE=16384" "-D" "_EEPROMSIZE=0" "-D" "EEPROM_SIZE=0" "-D" "_NVMREG_INT=2" "-D" "_EEREG_INT=1" "-D" "_NOREG_INT=0" "-D" "_EEPROM_INT=0" "-D" "_FLASH_ERASE_SIZE=32" "-D" "_FLASH_WRITE_SIZE=32" "-std=c99" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir" "D:\\Benutzer\\René\\MPLABXProjects\\Ich_Teste.X" "-ferror-limit" "19" "-fmessage-length" "0" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-QF_,0,far" "-QN_,0,near" "-QI_,0,interrupt" "-QS_,0,persistent" "-QT_,0,inline" "-QQ,0,__pack" "-QJ_,0,nonreentrant" "-QJ_,0,compiled" "-QU,0,__discrete" "-QE_0,1479,eeprom" "-QL_,0,low_priority" "-QH_,0,high_priority" "-QAx,0,__minocg" "-Q00,1512,__invariant" "-Q00,1512,__stable" "-Q00,0,restrict" "-QP_s,0,bank0" "-QX_s,0,bank1" "-QY_s,0,bank2" "-QZ_s,0,bank3" "-QCu,0,const" "-QR_,0,reentrant" "-QBu,0,__rom" "-QMu,0,__ram" "-o" "build/default/production\\newmain.p1" "-x" "c" "newmain.c"

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'std::invalid_argument'
  what():  No such file or directory
error: clang frontend command failed with exit code 3 (use -v to see invocation)
(908) exit status = 1
make[2]: *** [build/default/production/newmain.p1] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
nbproject/Makefile-default.mk:106: recipe for target 'build/default/production/newmain.p1' failed
make[2]: Leaving directory 'D:/Benutzer/Ren�/MPLABXProjects/Ich_Teste.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/Benutzer/Ren�/MPLABXProjects/Ich_Teste.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 3s)


Why does not this work for me? Can someone help?
#1

4 Replies Related Threads

    andersm
    Super Member
    • Total Posts : 2637
    • Reward points : 0
    • Joined: 2012/10/07 14:57:44
    • Location: 0
    • Status: offline
    Re: Cannot compiling 2019/04/19 13:10:59 (permalink)
    +1 (1)
    I suspect it's choking on the é in the path. You can see that the character has been replaced by the Unicode replacement character "�" in some places in the log.
    #2
    Nikkito
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2019/03/10 11:43:33
    • Location: 0
    • Status: offline
    Re: Cannot compiling 2019/04/19 14:29:59 (permalink)
    0
    I saw this with the é and changed the storage path. Unfortunately, the error message still looks the same. Now just with the new path without é.
     
    make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
    make[1]: Entering directory 'D:/MPLAB_Projekte/Ich_Teste_Weiter.X'
    make  -f nbproject/Makefile-default.mk dist/default/production/Ich_Teste_Weiter.X.production.hex
    make[2]: Entering directory 'D:/MPLAB_Projekte/Ich_Teste_Weiter.X'
    "C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8-cc.exe"  -mcpu=16LF1779 -c  -fno-short-double -fno-short-float -O0 -fasmfile -maddrqual=ignore -xassembler-with-cpp -Wa,-a -DXPRJ_default=default  -msummary=-psect,-class,+mem,-hex,-file  -ginhx032 -Wl,--data-init -mno-keep-startup -mno-osccal -mno-resetbits -mno-save-resetbits -mno-download -mno-stackcall   -std=c99 -gdwarf-3 -mstack=compiled:auto:auto     -o build/default/production/Newmain2.p1 Newmain2.c
    [Logging clang options] "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\bin\\clang.exe" "-cc1" "-triple" "pic" "-E" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "Newmain2.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-no-integrated-as" "-mconstructor-aliases" "-dwarf-column-info" "-debugger-tuning=gdb" "-resource-dir" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\bin\\..\\lib\\clang\\4.0.1" "-dependency-file" "build/default/production\\Newmain2.d" "-MT" "build/default/production\\Newmain2.i" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\c99" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\legacy" "-include" "language_support.h" "-U" "__GNUC__" "-D" "__CLANG__" "-D" "__PICC__" "-D" "__PICCPRO__" "-D" "XPRJ_default=default" "-D" "_OMNI_CODE_" "-D" "__STACK_COMPILED=1" "-D" "__STACK_HYBRID=2" "-D" "__STACK_REENTRANT=4" "-D" "__STACK=__STACK_COMPILED" "-D" "__ADDRQUAL_IGNORE=1" "-D" "__ADDRQUAL_REQUEST=2" "-D" "__ADDRQUAL_REQUIRE=4" "-D" "__ADDRQUAL_REJECT=8" "-D" "__ADDRQUAL=__ADDRQUAL_IGNORE" "-D" "__XC" "-D" "__XC8" "-D" "__XC__" "-D" "__XC8__" "-D" "__XC8_VERSION=2050" "-D" "HI_TECH_C" "-D" "__OPTIM_FLAGS=0x400103" "-D" "__OPTIM_NONE=0x0" "-D" "__OPTIM_ASM=0x1" "-D" "__OPTIM_ASMFILE=0x2" "-D" "__OPTIM_SPEED=0x20000" "-D" "__OPTIM_3=0x20000" "-D" "__OPTIM_SPACE=0x40000" "-D" "__OPTIM_SIZE=0x40000" "-D" "__OPTIM_S=0x40000" "-D" "__OPTIM_DEBUG=0x80000" "-D" "__OPTIM_G=0x80000" "-D" "__OPTIM_LOCAL=0x200000" "-D" "__OPTIM_1=0x100" "-D" "__OPTIM_2=0x200" "-D" "__OPTIM_LEVEL=0" "-D" "_CLIB_VERSION=1999" "-D" "_16LF1779" "-D" "__16LF1779" "-D" "__16LF1779__" "-D" "_MPC_" "-D" "__XC" "-D" "__XC8" "-D" "_HAS_INT24" "-D" "_PIC14E" "-U" "__SIZEOF_CHAR__" "-U" "__SIZEOF_SHORT__" "-U" "__SIZEOF_INT__" "-U" "__SIZEOF_SHORT_LONG__" "-U" "__SIZEOF__INT24__" "-U" "__SIZEOF___INT24__" "-U" "__SIZEOF_LONG__" "-U" "__SIZEOF_LONG_LONG__" "-U" "__SIZEOF_FLOAT__" "-U" "__SIZEOF_DOUBLE__" "-U" "__SIZEOF_LONG_DOUBLE__" "-D" "__SIZEOF_CHAR__=1" "-D" "__SIZEOF_SHORT__=2" "-D" "__SIZEOF_INT__=2" "-D" "__SIZEOF_SHORT_LONG__=3" "-D" "__SIZEOF_INT24__=3" "-D" "__SIZEOF___INT24__=3" "-D" "__SIZEOF_LONG__=4" "-D" "__SIZEOF_LONG_LONG__=8" "-D" "__SIZEOF_FLOAT__=4" "-D" "__SIZEOF_DOUBLE__=4" "-D" "__SIZEOF_LONG_DOUBLE__=4" "-D" "_COMMON_=1" "-D" "_COMMON_ADDR_=112" "-D" "_COMMON_SIZE_=16" "-D" "_BANKCOUNT_=32" "-D" "_BANKBITS_=5" "-D" "_GPRCOUNT_=26" "-D" "_GPRBITS_=4" "-D" "__DATABANK=3" "-D" "__FLASHTYPE=2" "-D" "_ROMSIZE=16384" "-D" "_EEPROMSIZE=0" "-D" "EEPROM_SIZE=0" "-D" "_NVMREG_INT=2" "-D" "_EEREG_INT=1" "-D" "_NOREG_INT=0" "-D" "_EEPROM_INT=0" "-D" "_FLASH_ERASE_SIZE=32" "-D" "_FLASH_WRITE_SIZE=32" "-std=c99" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir" "D:\\MPLAB_Projekte\\Ich_Teste_Weiter.X" "-ferror-limit" "19" "-fmessage-length" "0" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-o" "build/default/production\\Newmain2.i" "-x" "c" "Newmain2.c"
    [Logging clang options] "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\bin\\clang.exe" "-cc1" "-triple" "pic" "-S" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "Newmain2.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-no-integrated-as" "-mconstructor-aliases" "-dwarf-column-info" "-debugger-tuning=gdb" "-coverage-notes-file" "D:\\MPLAB_Projekte\\Ich_Teste_Weiter.X\\build/default/production\\Newmain2.gcno" "-resource-dir" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\bin\\..\\lib\\clang\\4.0.1" "-dependency-file" "build/default/production\\Newmain2.d" "-MT" "build/default/production\\Newmain2.p1" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\c99" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include" "-isystem" "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\legacy" "-include" "language_support.h" "-U" "__GNUC__" "-D" "__CLANG__" "-D" "__PICC__" "-D" "__PICCPRO__" "-D" "XPRJ_default=default" "-D" "_OMNI_CODE_" "-D" "__STACK_COMPILED=1" "-D" "__STACK_HYBRID=2" "-D" "__STACK_REENTRANT=4" "-D" "__STACK=__STACK_COMPILED" "-D" "__ADDRQUAL_IGNORE=1" "-D" "__ADDRQUAL_REQUEST=2" "-D" "__ADDRQUAL_REQUIRE=4" "-D" "__ADDRQUAL_REJECT=8" "-D" "__ADDRQUAL=__ADDRQUAL_IGNORE" "-D" "__XC" "-D" "__XC8" "-D" "__XC__" "-D" "__XC8__" "-D" "__XC8_VERSION=2050" "-D" "HI_TECH_C" "-D" "__OPTIM_FLAGS=0x400103" "-D" "__OPTIM_NONE=0x0" "-D" "__OPTIM_ASM=0x1" "-D" "__OPTIM_ASMFILE=0x2" "-D" "__OPTIM_SPEED=0x20000" "-D" "__OPTIM_3=0x20000" "-D" "__OPTIM_SPACE=0x40000" "-D" "__OPTIM_SIZE=0x40000" "-D" "__OPTIM_S=0x40000" "-D" "__OPTIM_DEBUG=0x80000" "-D" "__OPTIM_G=0x80000" "-D" "__OPTIM_LOCAL=0x200000" "-D" "__OPTIM_1=0x100" "-D" "__OPTIM_2=0x200" "-D" "__OPTIM_LEVEL=0" "-D" "_CLIB_VERSION=1999" "-D" "_16LF1779" "-D" "__16LF1779" "-D" "__16LF1779__" "-D" "_MPC_" "-D" "__XC" "-D" "__XC8" "-D" "_HAS_INT24" "-D" "_PIC14E" "-U" "__SIZEOF_CHAR__" "-U" "__SIZEOF_SHORT__" "-U" "__SIZEOF_INT__" "-U" "__SIZEOF_SHORT_LONG__" "-U" "__SIZEOF__INT24__" "-U" "__SIZEOF___INT24__" "-U" "__SIZEOF_LONG__" "-U" "__SIZEOF_LONG_LONG__" "-U" "__SIZEOF_FLOAT__" "-U" "__SIZEOF_DOUBLE__" "-U" "__SIZEOF_LONG_DOUBLE__" "-D" "__SIZEOF_CHAR__=1" "-D" "__SIZEOF_SHORT__=2" "-D" "__SIZEOF_INT__=2" "-D" "__SIZEOF_SHORT_LONG__=3" "-D" "__SIZEOF_INT24__=3" "-D" "__SIZEOF___INT24__=3" "-D" "__SIZEOF_LONG__=4" "-D" "__SIZEOF_LONG_LONG__=8" "-D" "__SIZEOF_FLOAT__=4" "-D" "__SIZEOF_DOUBLE__=4" "-D" "__SIZEOF_LONG_DOUBLE__=4" "-D" "_COMMON_=1" "-D" "_COMMON_ADDR_=112" "-D" "_COMMON_SIZE_=16" "-D" "_BANKCOUNT_=32" "-D" "_BANKBITS_=5" "-D" "_GPRCOUNT_=26" "-D" "_GPRBITS_=4" "-D" "__DATABANK=3" "-D" "__FLASHTYPE=2" "-D" "_ROMSIZE=16384" "-D" "_EEPROMSIZE=0" "-D" "EEPROM_SIZE=0" "-D" "_NVMREG_INT=2" "-D" "_EEREG_INT=1" "-D" "_NOREG_INT=0" "-D" "_EEPROM_INT=0" "-D" "_FLASH_ERASE_SIZE=32" "-D" "_FLASH_WRITE_SIZE=32" "-std=c99" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir" "D:\\MPLAB_Projekte\\Ich_Teste_Weiter.X" "-ferror-limit" "19" "-fmessage-length" "0" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-QF_,0,far" "-QN_,0,near" "-QI_,0,interrupt" "-QS_,0,persistent" "-QT_,0,inline" "-QQ,0,__pack" "-QJ_,0,nonreentrant" "-QJ_,0,compiled" "-QU,0,__discrete" "-QE_0,1479,eeprom" "-QL_,0,low_priority" "-QH_,0,high_priority" "-QAx,0,__minocg" "-Q00,1512,__invariant" "-Q00,1512,__stable" "-Q00,0,restrict" "-QP_s,0,bank0" "-QX_s,0,bank1" "-QY_s,0,bank2" "-QZ_s,0,bank3" "-QCu,0,const" "-QR_,0,reentrant" "-QBu,0,__rom" "-QMu,0,__ram" "-o" "build/default/production\\Newmain2.p1" "-x" "c" "Newmain2.c"

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    terminate called after throwing an instance of 'std::invalid_argument'
      what():  No such file or directory
    error: clang frontend command failed with exit code 3 (use -v to see invocation)
    (908) exit status = 1
    nbproject/Makefile-default.mk:106: recipe for target 'build/default/production/Newmain2.p1' failed
    make[2]: Leaving directory 'D:/MPLAB_Projekte/Ich_Teste_Weiter.X'
    nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
    make[1]: Leaving directory 'D:/MPLAB_Projekte/Ich_Teste_Weiter.X'
    nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
    make[2]: *** [build/default/production/Newmain2.p1] Error 1
    make[1]: *** [.build-conf] Error 2
    make: *** [.build-impl] Error 2

    BUILD FAILED (exit value 2, total time: 7
     
     
    #3
    mlp
    boots too small
    • Total Posts : 794
    • Reward points : 0
    • Joined: 2012/09/10 15:12:07
    • Location: previously Microchip XC8 team
    • Status: offline
    Re: Cannot compiling 2019/04/22 12:22:00 (permalink)
    +1 (1)
    Rlazi48
    #include <xc.h>

     
    Now, at first, I'm surprised that the #include <xc.h> is underlined red. With the cursor over the blub says: Cannot finde include file <xc.h>
    Why this?? What is wrong??

    MPLAB X has a long history of erroneous red underlines, and this forum has a long history of posts asking about it.
    Ignore it until you get a compiler error message that indicates the same source code construct.
     

    Mark (this opinion available for hire)
    #4
    christinaz
    Starting Member
    • Total Posts : 32
    • Reward points : 0
    • Joined: 2018/05/17 09:58:42
    • Location: 0
    • Status: offline
    Re: Cannot compiling 2019/04/29 11:17:06 (permalink)
    0
    I tried your way to create a new empty project and a single file of newMain.c and pasted your code in it, it built successfully. 
    post edited by christinaz - 2019/05/13 15:34:04
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5