|
From: | Russell Shaw |
Subject: | Re: [avr-gcc-list] How can I "#define" a string in the Makefile? |
Date: | Sat, 01 Nov 2003 03:32:40 +1100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030311 Debian/1.2.1-10 |
Russell Shaw wrote:
Bob Paddock wrote: Maybe the quotes are being stripped by the shell so that -DFIRMWARE_REV_STR="1.23" gives 1.23 instead of "1.23". Try: #define VERSION FIRMWARE_REV_STR static CONST char FLASH Firmware_Prj_str[] PROGMEM = VERSION;
Correction: static CONST char FLASH Firmware_Prj_str[] PROGMEM = #FIRMWARE_REV_STR;
[Prev in Thread] | Current Thread | [Next in Thread] |