• AVR Freaks

Hot!Problem with xc8 and mplab x

Author
dimasramalho2013
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2013/10/09 08:20:45
  • Location: 0
  • Status: offline
2019/10/18 06:45:36 (permalink)
0

Problem with xc8 and mplab x

Hello everyone,
 
I've installed xc32 (pro) and now installed xc8 (pro). In order to test new compiler I wrote a simple program but when it's compiled some erro messagens appear: unknown type name bit. It seems to me that mplab x thinks that I'm still on xc32 program. Can anybody help me?
#1

4 Replies Related Threads

    mbrowning
    USNA79
    • Total Posts : 1551
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: online
    Re: Problem with xc8 and mplab x 2019/10/18 12:23:16 (permalink)
    +1 (1)
    check the manual for the compiler version and mode. C99 mode only accepts "__bit" I believe.

    Go Navy! Beat Army!
    #2
    ric
    Super Member
    • Total Posts : 24168
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Problem with xc8 and mplab x 2019/10/18 14:02:07 (permalink)
    +1 (1)
    Indeed. The older XC8 v1.xx, and XC8 v2.xx when working in "C90" mode, will both accept just "bit".
    The latest version in the latest mode does not, because "bit" is not ANSI compatible, so you have to use "__bit".
    It's all in the user manual.
     

    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!
    #3
    mlp
    boots too small
    • Total Posts : 812
    • Reward points : 0
    • Joined: 2012/09/10 15:12:07
    • Location: previously Microchip XC8 team
    • Status: offline
    Re: Problem with xc8 and mplab x 2019/10/20 14:08:01 (permalink)
    +1 (1)
    ric
    It's all in the user manual.

    i reckon Jeff could spend his days playing X-Plane instead of updating the manual with barely a blip in the level of support requests.

    Mark (this opinion available for hire)
    #4
    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11391
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: Problem with xc8 and mplab x 2019/10/20 14:23:18 (permalink)
    0
    instead of updating the manual


    There's a manual???
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5