[Qt-interest] How to define string constants in .pro file
Md. Enzam Hossain
meenzam at gmail.com
Sun Nov 28 00:39:35 CET 2010
Sorry, it does not solve the problem :(
--Enzam
On Sun, Nov 28, 2010 at 5:18 AM, J-P Nurmi <jpnurmi at gmail.com> wrote:
>
> On Sun, Nov 28, 2010 at 12:19 AM, Md. Enzam Hossain <meenzam at gmail.com> wrote:
>>
>> Hi, I am trying to define a constant in .pro file like
>> DEFINES = MY_DEFINE=\\\"VALUE OF MY_DEFINE\\\"
>>
>> But compiling for symbian generates an error on .mmp file in the line -
>> MACRO MY_DEFINE=\"VALUE OF MY_DEFINE\"
>>
>> Is there any other way to define the variable?
>
> Hi,
> So does the value contain spaces like in your example? I recall we had it like this in some past project:
> DEFINES += MY_DEFINE=\"\\\"VALUE OF MY_DEFINE\\\"\"
> Does it work if you make it like that?
> --
> J-P Nurmi
More information about the Qt-interest-old
mailing list