[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Code version timestamp

From: Vincent Trouilliez
Subject: Re: [avr-gcc-list] Code version timestamp
Date: Fri, 16 Sep 2005 18:06:23 +0200

> 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 ?

Any ideas...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]