Page 1 of 1

Compilation Error C32

Posted: Tue Aug 06, 2013 11:57 am
by nkigen
Hi,
I get the following error when I im compiling my project.
CPP eecfg.c
In file included from /opt/microchip/xc32/v1.21/bin/../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/include/sys/appio.h:40:0,
from /opt/microchip/xc32/v1.21/bin/../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/include/xc.h:481,
from ./frommchp/p32xxxx.h:5,
from ./ee_pic32regs.h:2,
from /home/nkigen/eclipse/plugins/com.eu.evidence.ee_2.1.0.20130515_1217/ee_files/pkg/cpu/pic32/inc/ee_cpu.h:6,
from /home/nkigen/eclipse/plugins/com.eu.evidence.ee_2.1.0.20130515_1217/ee_files/pkg/ee.h:112,
from eecfg.c:1:
/opt/microchip/xc32/v1.21/bin/../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/include/stdio.h:140:58: error: expected ';', ',' or ')' before numeric constant
make: *** [obj/eecfg.o] Error 1

I am using c32 compiler ver. 1.41. and im trying to compile code for PIC32MX795F512L on an EXPLORE16 board. I am also using the latest version of ERIKA

Re: Compilation Error C32

Posted: Tue Aug 06, 2013 12:59 pm
by paolo.gai
Hi,

This is quite strange as the error you reported seems to be in one of the internal files distributed with the c32 compiler.

Does the PIC32 examples we distribute compile as is on your machine?

PJ

Re: Compilation Error C32

Posted: Wed Aug 07, 2013 6:31 am
by nkigen
Yes, I tried the examples and they compile and work fine.

Re: Compilation Error C32

Posted: Wed Aug 07, 2013 7:38 am
by paolo.gai
So it means there is something strange in the eecfg.h.

Did you use reserved keywords as names for tasks, resources, .... ? they may end up in #defines making problems in the include file later on...

PJ

Re: Compilation Error C32

Posted: Thu Aug 08, 2013 11:45 am
by nkigen
Is count a reserved word? I had used count as the name for the Counter but I have changed it to another name and it compiles fine now.
Thanks.

Re: Compilation Error C32

Posted: Fri Aug 16, 2013 1:21 pm
by paolo.gai
It should not be a reserved word of the C language.

but note that names in OIL are translated to #defines. if you had another "count" in one of the files then it would have been substituted with a number... then the problem...

PJ