[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Code version timestamp
From: |
Anton Erasmus |
Subject: |
Re: [avr-gcc-list] Code version timestamp |
Date: |
Fri, 16 Sep 2005 18:57:45 +0200 |
On 16 Sep 2005 at 18:06, Vincent Trouilliez wrote:
> > Look at the __DATE__ and __TIME__ predefined macros. Since they are
> > already string constants, you can use the compiler to concatenate
> > them with the string you want to display, such as:
> >
> > char *version =
> > "Compiled on " __DATE__ " at " __TIME__;
>
> Would love to use these Macros, but whenever I try to use __DATA__
> for example, the compiler complains that :
>
> error: `__DATA__' undeclared (first use in this function)
>
> Are these macros been introduced so recently in gcc that my sliiighlty
> old 3.4.3 version doesn't support them ?
>
>
It should be __DATE__ not __DATA__ !!
Regards
Anton Erasmus
--
A J Erasmus