Hola AngelGris, gracias por tu respuesta.
La verdad es que estuve probando varias cosas que vi por el foro antes, pero siempre dejaba algun include del pic. Poniendo solo el xc.h, sin embargo, desaparecen las redefiniciones, pero sigue dandome un error, ya que no reconoce el registro SSPADD:
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/Users/Alexia/MPLABXProjects/UFC_v1_0.X'
make -f nbproject/Makefile-default.mk dist/default/production/UFC_v1_0.X.production.hex
make[2]: Entering directory `C:/Users/Alexia/MPLABXProjects/UFC_v1_0.X'
"C:\Microchip\xc8\v1.20\bin\xc8.exe" --pass1
--chip
=18F4450
-Q
-G
--double=24 --float=24 --emi
=wordwrite
--opt
=default,+asm
,+asmfile
,-speed
,+space
,-debug
--addrqual
=ignore
--mode
=free -P
-N255
--warn
=0 --asmlist
--summary
=default,-psect
,-class
,+mem
,-hex
,-file
--output
=default,-inhx032
--runtime
=default,+clear
,+init
,-keep
,-no_startup
,-download
,+config
,+clib
,+plib
--output
=-mcof
,+elf
"--errformat=%%f:%%l: error: %%s" "--warnformat=%%f:%%l: warning: %%s" "--msgformat=%%f:%%l: advisory: %%s" -obuild
/default/production
/main.
p1 main.
c main.c:42: warning: function declared implicit int
main.c:43: error: undefined identifier "SSPADD"
main.c:45: warning: function declared implicit int
main.c:46: warning: function declared implicit int
main.c:47: warning: function declared implicit int
main.c:53: warning: function declared implicit int
make[2]: Leaving directory `C:/Users/Alexia/MPLABXProjects/UFC_v1_0.X'
make[1]: Leaving directory `C:/Users/Alexia/MPLABXProjects/UFC_v1_0.X'
make[2]: *** [build/default/production/main.p1] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED
(exit value
2, total
time: 5s
)
Ademas, da igual que haga #include <plib/i2c.h> o #include <i2c.h>, las funciones de i2c siguen apareciendo subrayadas, como si no encontrara los identificadores
Por si sirve de algo, los warning "warning: function declared implicit int" se corresponden a las lineas donde hay una funcion de i2c utilizada.
Seguiré buscando, pero ni en los foros de microchip ni aqui mismo estoy consiguiendo encontrar algo que me ayude.
Ah! Por si acaso, desinstale y volvi a instalar la version mas reciente tanto de mplabx como de xc8