mplab compiler error: 'BORV_27' undeclared here (not in a function)

Discussion in 'Embedded Systems and Microcontrollers' started by somchai, Nov 6, 2012.

  1. somchai

    Thread Starter New Member

    Oct 27, 2012
    5
    0
    Hai there,

    im an engineering student from malaysia

    i been working on this c programming but now only have one error that i dont know


    For your info, i use Mplab 8.30 + mplabc30_v3_30c_windows compiler software...

    1) Together with this thread are :
    2 Print screen image of error and the source of error....

    Hope anyone from the forum can help me out
     
  2. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    991
    Most people will not open a doc attachment. Do not post docs.

    Post a png file.

    Post the code in between code blocks. I think there is a sticky that tells you how to do this.
     
    somchai likes this.
  3. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    Check the header file that references the part you are using. Sometimes the names are a bit off.
     
    somchai likes this.
  4. somchai

    Thread Starter New Member

    Oct 27, 2012
    5
    0
    HI THERE,

    tHANX FOR THE COMMENT TO IMPROVE MY THREAD

    i been working on this c programming but now only have one error that i dont know

    I BEEN WORKING ON THIS C PROGRAMMING BUT NOW ONLY HAVE ONE ERROR LEFT!!!!!!!!!!
    FOR YOUR INFO, I USE Mplab v8.88 + mplabc30_v3_30c_windows compiler software...

    Debug build of project `C:\Users\somchai\Desktop\Testing\Test1.mcp' started.
    Language tool versions: pic30-as.exe v3.31, pic30-gcc.exe v3.31, pic30-ld.exe v3.31, pic30-ar.exe v3.31
    Preprocessor symbol `__DEBUG' is defined.
    Wed Nov 07 03:13:50 2012
    ----------------------------------------------------------------------
    Clean: Deleting intermediary and output files.
    Clean: Deleted file "C:\Users\somchai\Desktop\Testing\dijkstra.o".
    Clean: Deleted file "C:\Users\somchai\Desktop\Testing\encoder.o".
    Clean: Deleted file "C:\Users\somchai\Desktop\Testing\Test1.mcs".
    Clean: Done.
    Executing: "C:\Program Files (x86)\Microchip\mplabc30\v3.25\bin\pic30-gcc.exe" -mcpu=30F4011 -x c -c "dijkstra.c" -o"dijkstra.o" -D__DEBUG -g -Wall
    Executing: "C:\Program Files (x86)\Microchip\mplabc30\v3.25\bin\pic30-gcc.exe" -mcpu=30F4011 -x c -c "encoder.c" -o"encoder.o" -D__DEBUG -g -Wall
    Executing: "C:\Program Files (x86)\Microchip\mplabc30\v3.25\bin\pic30-gcc.exe" -mcpu=30F4011 -x c -c "msr.c" -o"MSR.o" -D__DEBUG -g -Wall
    msr.c:13: error: 'BORV_27' undeclared here (not in a function)
    Halting build on first failure as requested.
    ----------------------------------------------------------------------
    Debug build of project `C:\Users\somchai\Desktop\Testing\Test1.mcp' failed.
    Language tool versions: pic30-as.exe v3.31, pic30-gcc.exe v3.31, pic30-ld.exe v3.31, pic30-ar.exe v3.31
    Preprocessor symbol `__DEBUG' is defined.
    Wed Nov 07 03:13:53 2012
    ----------------------------------------------------------------------
    BUILD FAILED
     
  5. bertus

    Administrator

    Apr 5, 2008
    15,647
    2,346
    Hello,

    I have merged the threads, as you do not have to start a thread for the same question.

    Bertus
     
  6. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,866
    991
    Check your source for a line that says:

    BORV_27

    Check the spelling.

    Make sure it is either spelled right or you have the header included or it is pre declared in your source.
     
Loading...