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

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

Re: [avr-gcc-list] How can I "#define" a string in the Makefile?


From: Christian Vogel
Subject: Re: [avr-gcc-list] How can I "#define" a string in the Makefile?
Date: Fri, 31 Oct 2003 17:50:18 +0100
User-agent: Mutt/1.2.5.1i

Hi Bob,

On Fri, Oct 31, 2003 at 09:45:16AM -0500, Bob Paddock wrote:
> How can I "#define" a string in the Makefile?
> CFLAGS = -g -O$(OPT) ... -DUSE_LCDDISP=1 -DFIRMWARE_REV_STR="1.23" ...
> results in the error "invalid initializer" on this line:

try this:

CFLAGS=... -DFIRMWARE_REV_STR=\"1.23\"

        Chris

-- 
This site has been moved.
We'd tell you where, but then we'd
have to delete you.
-- Charles Matthews


reply via email to

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