1. HKF

    Thread Starter New Member

    Sep 22, 2015
    2
    0
    Hi Fellow Programmers,

    I am new here trying to program the PIC10F320 and I am facing a problem of building the program this are the error I have encountered.
    I'm using MPLAB X IDE V.3.0.0

    This is the error I am facing.

    make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
    make[1]: Entering directory 'C:/Users/Anuar/MPLABXProjects/Test1.X'
    make -f nbproject/Makefile-default.mk dist/default/production/Test1.X.production.hex
    make[2]: Entering directory 'C:/Users/Anuar/MPLABXProjects/Test1.X'
    "C:\Program Files (x86)\Microchip\xc8\v1.34\bin\xc8.exe" --pass1 --chip=10F320 -Q -G --double=24 --float=24 --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,+osccal,-resetbits,-download,-stackcall,+clib --output=-mcof,+elf:multilocs --stack=compiled:auto:auto "--errformat=%f:%l: error: (%n) %s" "--warnformat=%f:%l: warning: (%n) %s" "--msgformat=%f:%l: advisory: (%n) %s" -obuild/default/production/newmain1.p1 newmain1.c
    newmain1.c:31: error: (195) expression syntax
    newmain1.c:31: error: (194) ")" expected
    newmain1.c:38: error: (195) expression syntax
    newmain1.c:38: error: (194) ")" expected
    newmain1.c:47: error: (192) undefined identifier "WPU"
    newmain1.c:55: warning: (361) function declared implicit int
    newmain1.c:60: error: (195) expression syntax
    newmain1.c:60: error: (300) unexpected end of file
    (908) exit status = 1
    nbproject/Makefile-default.mk:94: recipe for target 'build/default/production/newmain1.p1' failed
    make[2]: Leaving directory 'C:/Users/Anuar/MPLABXProjects/Test1.X'
    nbproject/Makefile-default.mk:78: recipe for target '.build-conf' failed
    make[1]: Leaving directory 'C:/Users/Anuar/MPLABXProjects/Test1.X'
    nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
    make[2]: *** [build/default/production/newmain1.p1] Error 1
    make[1]: *** [.build-conf] Error 2
    make: *** [.build-impl] Error 2

    BUILD FAILED (exit value 2, total time: 454ms)
     
  2. be80be

    Senior Member

    Jul 5, 2008
    431
    57
    Have to post your code you forgot something before line 194
     
    HKF likes this.
  3. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    From the build output I can tell you are using theXC8 compiler. Which compiler you chose is far more important that which IDE you have chosen. (MPLAB can handle many many compilers.)

    When hit with a boatload of C errors just look at the first one, fix it then recompile. The reason is often one bad line will cause an error in subsequent lines, often many lines below as the compiler is far more literal in reading your code than you are.

    Keeping that in mind, if the first line to error looks just fine, look to the line(s) before that.

    Without seeing your code with line numbers intact one could only guess at your specific problem.
     
    HKF likes this.
  4. HKF

    Thread Starter New Member

    Sep 22, 2015
    2
    0
    Thank you for all your response to the matter managed to debug already thank you
     
  5. be80be

    Senior Member

    Jul 5, 2008
    431
    57
    It was the line before 194 LOL
     
  6. RRITESH KAKKAR

    Senior Member

    Jun 29, 2010
    2,831
    89
    I have never used pic10 started with pic16f676