• AVR Freaks

Hot!missing entire includes directory in version 2.10 compiler

Author
nbkhwjm
New Member
  • Total Posts : 20
  • Reward points : 0
  • Joined: 2017/03/15 08:06:17
  • Location: 0
  • Status: offline
2019/09/04 18:41:00 (permalink)
0

missing entire includes directory in version 2.10 compiler

i have a running project that compiles fine with xc8 v1.44 but fails on v2.10, it cannot find the includes..
 
main.c:56:22: error: (141) can't open include file "p18f46k20.h": No such file or directory
 
when i look at the directory for the includes, they are not there, but they are there for the old compiler...  Im bringing on new developers and they cannot get the builds to work without them...
 
how to fix this..
 
MPLABX OSX
#1

3 Replies Related Threads

    ric
    Super Member
    • Total Posts : 23839
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: missing entire includes directory in version 2.10 compiler 2019/09/04 18:59:53 (permalink)
    +1 (1)
    What do you have in your C file?
    #include <xc.h>

    or a line specifically loading the device specific file (which you should not do).
     
    The header files are in a new location in the v2.x compilers because of the added AVR support, but you shouldn't notice if you are including xc.h correctly.
     

    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!
    #2
    nbkhwjm
    New Member
    • Total Posts : 20
    • Reward points : 0
    • Joined: 2017/03/15 08:06:17
    • Location: 0
    • Status: offline
    Re: missing entire includes directory in version 2.10 compiler 2019/09/04 19:06:28 (permalink)
    0
    ric
    What do you have in your C file?
    #include <xc.h>

    or a line specifically loading the device specific file (which you should not do).
     
    The header files are in a new location in the v2.x compilers because of the added AVR support, but you shouldn't notice if you are including xc.h correctly.
     




    yea it had both the #include <xc.h> AND chip specific lines... works now with only xc.h line..
     
    thanks
     
     
    #3
    ric
    Super Member
    • Total Posts : 23839
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: missing entire includes directory in version 2.10 compiler 2019/09/04 19:21:10 (permalink)
    +1 (1)
    As I mentioned, you should NOT include the device file yourself.
    All versions of XC8 do that inside xc.h, so you have just been including exactly the same file a second time.
     

    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
    Jump to:
    © 2019 APG vNext Commercial Version 4.5