Re: How to define a string with spaces on compile line?
- From: "David Gintz" <dgintz@xxxxxxxxx>
- Date: Fri, 14 Oct 2005 14:38:50 -0400
"Hilarion" <hilarion@xxxxxxxxxxxxxxxxx> wrote in message
news:diot7i$25g$1@xxxxxxxxxxxxxxx
>> I'd like to pass in a string on the command line to be used in the
>> compiled
>> program. I've done this many times by adding to the compile line as:
>>
>> /D SYMBOLTODEFINE=\"value\"
>>
>> This is now the first time that the string needs to include a blank. I've
>> tried to simply enter the space and to escape it with a backslash but in
>> neither case does the compiler like it. What is the correct way to do
>> this?
>
>
> Maybe like that:
>
> /D "SYMBOLTODEFINE=\" value \""
>
> What compiler? What platform?
>
>
> Hilarion
I don't think you understood the problem. As I said, I tried to just enter
the space (which is what your example does and I get an error on it. I also
tried to escape it (entering the backslash followed by the blank and still
got an error.
This is with Visual Studio 6.
.
- Follow-Ups:
- Re: How to define a string with spaces on compile line?
- From: Hilarion
- Re: How to define a string with spaces on compile line?
- References:
- How to define a string with spaces on compile line?
- From: David Gintz
- Re: How to define a string with spaces on compile line?
- From: Hilarion
- How to define a string with spaces on compile line?
- Prev by Date: Re: How to define a string with spaces on compile line?
- Next by Date: Save outlining view
- Previous by thread: Re: How to define a string with spaces on compile line?
- Next by thread: Re: How to define a string with spaces on compile line?
- Index(es):
Relevant Pages
|