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

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

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


From: Bob Paddock
Subject: [avr-gcc-list] How can I "#define" a string in the Makefile?
Date: Fri, 31 Oct 2003 09:45:16 -0500
User-agent: Opera7.21/Win32 M2 build 3218



How can I "#define" a string in the Makefile?

Simple ones like "-DUSE_LCDDISP=1" work fine but
doing this:

CFLAGS = -g -O$(OPT) ... -DUSE_LCDDISP=1 -DFIRMWARE_REV_STR="1.23" ...

results in the error "invalid initializer" on this line:

/* Displayed as part of sign on message: */
static CONST char FLASH Firmware_Prj_str[] PROGMEM = FIRMWARE_REV_STR;

Is there some kind of shell escaping I should be accounting for?



reply via email to

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