One more comment:

also, please put brackets around any math operations in defines, i.e.

#define SMTH (10*0x1234)

~d


On Mon, 17 Jun 2002 11:36:00 +0100
"Colin Domoney" <[email protected]> wrote:

> Hello all
> 
> In the adc12.h standard header file there is the following definition:
> 
> #define CSTARTADD_8         08*0x1000
> 
> Unfortunately if you try and use this definition it breaks GCC with the 
> following message:
> "numeric constant contains digits beyond the radix"
> 
> This is because the leading zero on the '08' causes GCC to think it is an 
> octal number and then complains 
> when we try and put 8 into an octal number - quite understandably. Can the 
> person responsible for 
> maintaining these header files please remove the leading zeroes in these (and 
> other definitions) ?
> 
> Thanks.
> 
> Colin
> 
> -------------------------------------------------------
> Colin Domoney                                  
> Digital Hardware Design Engineer
> NCipher, Jupiter House, Station Road, Cambridge, CB1 2JD
> e-mail: [email protected]
> Telephone: +44-1223-723630
> 
> _______________________________________________________________
> 
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> 


/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/

Reply via email to