[Ilugc] Using Redhat's msp430-gcc package
- From: jagannathante@xxxxxxxxx (Jagannathan Tiruvallur Eachambadi)
- Date: Mon, 16 Dec 2013 18:59:13 +0530
option-1: (command line option)
Remove the header file name 'msp430.h' from the above flag and try
-I/usr/local/lib/gcc/msp430-elf/4.8.0/plugin/include/config/msp430
Now it does not complain about the missing header file, but the code still
does not compile.
errors:
<
In file included from blink.c:1:0:
/usr/local/lib/gcc/msp430-elf/4.8.0/plugin/include/config/msp430/msp430.h:28:1:
error: unknown type name 'bool'
extern bool msp430x;
^
blink.c: In function 'main':
blink.c:7:2: error: 'WDTCTL' undeclared (first use in this function)
WDTCTL = WDTPW + WDTHOLD;
^
blink.c:7:2: note: each undeclared identifier is reported only once for
each function it appears in
blink.c:7:11: error: 'WDTPW' undeclared (first use in this function)
WDTCTL = WDTPW + WDTHOLD;
^
blink.c:7:19: error: 'WDTHOLD' undeclared (first use in this function)
WDTCTL = WDTPW + WDTHOLD;
^
blink.c:8:2: error: 'P1DIR' undeclared (first use in this function)
P1DIR=0x41;
^
blink.c:10:3: error: 'P1OUT' undeclared (first use in this function)
P1OUT|=0X40;
^
option-2: (Through environment variable)
$C_INCLUDE_PATH=/usr/local/lib/gcc/msp430-elf/4.8.0/plugin/include/config/msp430
$export C_INCLUDE_PATH
Same results as above.
Regards
Jagannathan T E
Other related posts: