[Qt-interest] How to define string constants in .pro file
J-P Nurmi
jpnurmi at gmail.com
Sun Nov 28 00:18:44 CET 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101128/f27156d3/attachment.html
More information about the Qt-interest-old
mailing list