Hi,

In most of my projects, I use a define rule from the Makefile like this:

-D'SVN_REV='"$(shell svnversion -n .)"'

which creates a define SVN_REV with the svn revision, quoted (so svn revision 
6M will appear as "6M").

Just tried this with my brand new SDCC project, but it seems as if SDCC (or 
something else in the toolchain?) strips the quotes, thus giving me parse 
errors.
Placing '#define SVN_REV "6M"' directly in the code does work, but that kinda 
defeats the purpose of this thing.

This works fine on the same system for some projects for other MCU's, using 
GCC.

Is this intended behavior, a bug, or am i doing something wrong?

Thanks,
-Bastiaan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to