Hot!"Unable to resolve identifier..." Error

Author
Btipf
Starting Member
  • Total Posts : 53
  • Reward points : 0
  • Joined: 2013/09/07 14:13:26
  • Location: 0
  • Status: offline
2015/07/20 08:08:21 (permalink)
0

"Unable to resolve identifier..." Error

Hi. After successfully simulating my C program (based upon a PIC12F157) I rebuilt it for use with REAL ICE. The output window indicated that the build was successful, but red, exclamation point icons with messages warning "Unable to resolve identifier XXXbits" appeared next to my code lines which initialize bit settings for my OSCCON and TRISA registers. I'm not sure what to make of these warnings as they didn't appear after building my previous program files (no changes) for simulation.
 
I'd appreciate some advice as to why these warnings now appear (despite the successful build) and what if anything I need to do to fix this.
 
Thanks very much!
#1

9 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 17148
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: "Unable to resolve identifier..." Error 2015/07/20 10:30:05 (permalink)
    0
    What Version? V3.05
    Did you try Closing and reopening MPLab?
    #2
    Aussie Susan
    Super Member
    • Total Posts : 3519
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: "Unable to resolve identifier..." Error 2015/07/20 18:47:55 (permalink)
    +1 (1)
    There are often issues with the way the IDE tries to parse your source code and show "errors". 
    You really need to treat these as a guide only. The true test is what the compiler itself gives you - if it finds an error then, regardless of what the IDE shows, you need to sort out the problem.. On the other hand, if you can compile successfully, then there are no issues.
    This has been mentioned numerous times for quite a few versions of the IDE.
    Susan
    #3
    jvh
    Junior Member
    • Total Posts : 104
    • Reward points : 0
    • Joined: 2013/06/17 10:05:23
    • Location: 0
    • Status: offline
    Re: "Unable to resolve identifier..." Error 2015/07/23 10:56:56 (permalink)
    +1 (1)
    You may also hear that sometimes these problems can be cleared by modifying a file (just a space and then a backspace will often do), saving, and rebuilding.
     
    Unable to resolve comes up a lot when it is not expected. It will pop up and tell me a parameter to my function cannot be resolved because I haven't typed the closing curly brace yet. Or when something is out of balance somewhere else in the file. It is a bit distracting so now I throw out a pair of braces or parenthesis and then fill in the middles.
     
    jh
    #4
    Btipf
    Starting Member
    • Total Posts : 53
    • Reward points : 0
    • Joined: 2013/09/07 14:13:26
    • Location: 0
    • Status: offline
    Re: "Unable to resolve identifier..." Error 2015/07/25 08:19:47 (permalink)
    0
    I'm using MPLAB IDE version 2.35.

    Closing & reopening MPLAB did indeed fix the problem. 'Seems kinda hokey. : )

    Thanks very much for the helpful recommendation!
    #5
    Btipf
    Starting Member
    • Total Posts : 53
    • Reward points : 0
    • Joined: 2013/09/07 14:13:26
    • Location: 0
    • Status: offline
    Re: "Unable to resolve identifier..." Error 2015/07/25 08:25:21 (permalink)
    0
    Thanks for the great advice! As another helpful contributor suggested, closing then reopening MPLAB made the "Unable to resolve identifier" errors to go away. From now on I'll focus more on the compiler messages.
    #6
    Btipf
    Starting Member
    • Total Posts : 53
    • Reward points : 0
    • Joined: 2013/09/07 14:13:26
    • Location: 0
    • Status: offline
    Re: "Unable to resolve identifier..." Error 2015/07/25 08:29:47 (permalink)
    0
    Thanks so much! As you said, just closing and reopening MPLAB made the (concerning but false) error indications disappear.
    #7
    ric
    Super Member
    • Total Posts : 22101
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: "Unable to resolve identifier..." Error 2015/07/25 20:25:20 (permalink)
    +1 (1)
    It's not perfect, but MPLABX is now up to version 3.05, which has fixed a few more problems.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #8
    Javier Lopez
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2019/02/27 09:59:32
    • Location: Spain
    • Status: offline
    Re: "Unable to resolve identifier..." Error 2019/04/17 02:06:47 (permalink)
    0
    Do you have to restart again and again every time a change is done to remove false warnings?
    #9
    mbrowning
    Just a Member
    • Total Posts : 1283
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: online
    Re: "Unable to resolve identifier..." Error 2019/04/17 03:53:22 (permalink)
    +1 (1)
    I never do. The most I ever have to do is save any modified files.

    Oh well - there's always next year
    #10
    Jump to:
    © 2019 APG vNext Commercial Version 4.5