• AVR Freaks

Hot!xc.h cant find proc include files in MPLABx

Author
G0RSQ
Starting Member
  • Total Posts : 12
  • Reward points : 0
  • Joined: 2010/12/05 11:20:58
  • Location: 0
  • Status: offline
2020/09/27 14:46:50 (permalink)
5 (1)

xc.h cant find proc include files in MPLABx

Sorry have to write my question as txt file (see below), as getting access denied errors when trying to post
 
Any help greatly appreciated.
 
Thanks

Attachment(s)

Attachments are not available: Download requirements not met
#1

4 Replies Related Threads

    Mysil
    Super Member
    • Total Posts : 3809
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: xc.h cant find proc include files in MPLABx 2020/09/27 15:05:23 (permalink)
    0
    Hi,
    Shouldn't there be a hash character # before the preprocessor directive to include a file?
    #include <xc.h>  

     
    Have there been some trickery done with directory placement of compiler installation?
     
        Mysil
    #2
    G0RSQ
    Starting Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2010/12/05 11:20:58
    • Location: 0
    • Status: offline
    Re: xc.h cant find proc include files in MPLABx 2020/09/27 16:19:44 (permalink)
    +1 (1)
    Mysil
     
    Thanks for taking time to read and answer my question..
     
    Yes, sorry my mistake, I forgot to add the # in the question (thats what happens after you re-write it three times due to not being able to post due to "access denied" errors!)
     
    MPLABX was default install (C:\Program Files (x86)\Microchip\MPLABX)
    XC8 wasnt installed in default directory (C:\program files) but I changed directory to C:\programfiles (x86). (C:\Program Files (x86)\Microchip\xc8)
     
    Do you think that would upset the system?
    #3
    ric
    Super Member
    • Total Posts : 28677
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: xc.h cant find proc include files in MPLABx 2020/09/27 17:07:36 (permalink)
    +1 (1)
    Yes, not allowing XC8 to install in the default location may have upset things.
    That said, MPLABX has always been fragile with include locations.
    The compiler will nearly always find the includes (so you don't get compile errors), it's just the editor that gets confused, and often shows red squiggly lines everywhere.
     
    n.b. WHY did you move it?
    XC8 is now a fully 64 bit application.
    "C:\Program Files (x86)" is where 32 bit applications go.
    "C:\Program Files" is where 64 bit applications go.
     
     

    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!
    #4
    G0RSQ
    Starting Member
    • Total Posts : 12
    • Reward points : 0
    • Joined: 2010/12/05 11:20:58
    • Location: 0
    • Status: offline
    Re: xc.h cant find proc include files in MPLABx 2020/10/02 13:37:53 (permalink)
    0
    ric
     
    I installed MPLABx 5.35 first, and that is where it installed to. (I needed to use 5.35 as I normally program in ASM and couldent get later MPLABx to work on existing projects.)
     
    I thought putting XC8 in the same location would be more logical, than in a completely different location, and mixing the two around.
     
    I will try a clean install of them both in default locations and see what happens.
     
    When i try and compile I get errors so this is more than just an editor issue.
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5