Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-02 22:54:55


AMDG

jono wrote:
> it would be really useful for me to be able to define a string literal
> in a Jamfile...
>
> <snip>
>
> gcc -DNAME=\"variant\" does what i want, so i've also tried
>
> <snip>

Think about what bjam does with the string. It behaves a lot
like C++. In other words, you use a backslash as an escape character.
You want to generate a \" sequence in the command line. Both
of these are special characters, so they need to be escaped.

<define>NAME=\\\"variant\\\"

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net