what's up with the new XC8 v2.0 compiler

Thread Starter

bug13

Joined Feb 13, 2012
2,002
Hi guys

I recently installed the microchip XC8 v2.0 compiler, it doesn't do suggestive inputs anymore, and can't recognize the key words like uint8_t, PORTAbits.RA0 etc... (have a red wiggle line under those key words). But it recognize int etc...

But if I switch back to a earlier one (v1.45), all work fine.

Both compiler seen to compile no error tho.

Any thought??
 

Raymond Genovese

Joined Mar 5, 2016
1,653
Not sure this will fix it and I take no responsibility for any adverse effects, but:

Tools
Options
Embedded
Build Tools

Make sure it says C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8-cc.exe and not just xc8.exe for the compiler and assembler settings.
Have you gone to MPLAB X IDE v5.00 yet? It's not going to like your old projects either.
 

Thread Starter

bug13

Joined Feb 13, 2012
2,002
Not sure this will fix it and I take no responsibility for any adverse effects, but:

Tools
Options
Embedded
Build Tools

Make sure it says C:\Program Files (x86)\Microchip\xc8\v2.00\bin\xc8-cc.exe and not just xc8.exe for the compiler and assembler settings.
Have you gone to MPLAB X IDE v5.00 yet? It's not going to like your old projects either.
You are right, I need to update my IDE (still at v4.15), thanks for your help.

http://microchipdeveloper.com/xc8:moving-to-xc8-2-0
 
Top