I have some code that I'm trying to build for the c674 elf target and it references the DNUM register. This code builds fine, but when I turn on the 'strict ansi' flag for the compiler
(-ps), compilation fails at the DNUM reference:-
line 439: error: identifier "DNUM" is undefined
DNUM has been defined in the same file as follows:-
extern cregister volatile unsigned int DNUM;
Could someone comment on whether I should be able to do this ? And why it fails ?
Thanks,
Gunjan