avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] __DATE__ constant, any way to format it differently ?


From: Vincent Trouilliez
Subject: Re: [avr-gcc-list] __DATE__ constant, any way to format it differently ?
Date: Thu, 29 Jan 2009 02:49:41 +0100

On Wed, 28 Jan 2009 20:33:04 -0500
Preston Wilson <address@hidden> wrote:

> From the error message, I would say you have too much quoting.  avr-gcc is
> treating the " -DMY_DATE=090129 " (after expansion) as a file.  Try it
> without the quotes on this line:
> CFLAGS+=" -DMY_DATE=`date +%y%m%d` "

Thanks Preston. I removed the double quotes, and that's better, now I
still get a Make error, but it's further down the line, about the code
itself not the Make file.

I tried:

const char compile_date[12] PROGMEM = MY_DATE ;

but this yields :

ui.c:43: error: ‘MY_DATE’ undeclared here (not in a function)


Undeclared ? Strange, mmmpff....


--
Vince




reply via email to

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