[Qt-interest] Mingw/GCC via QtC for windows - Defines with spaces problem(?)

Garth Dahlstrom ironstorm at gmail.com
Mon Mar 2 15:37:40 CET 2009


Hi,

I'm currently trying to pass an define into my application in Qt Creator for
Windows.  I'm hitting a problem with properly escaping defines that have
spaces in their payload.

I can do this in my .pro file:

DEFINES += SETTINGS_FILE=\\\".mixxx.cfg\\\"

and that works.

However  when I try every escaping combination I can think for this:

DEFINES += SETTINGS_PATH=\\\"Local Settings/Application Data/Mixxx/\\\"

I either end up with

--> missing terminating " char

or something mangled before it gets to gcc  (i.e. -DSETTINGS_PATH=\"Local
-DSettings/Application -DData/Mixxx/\" )

I'm wondering if anyone else has encountered this type of situation on
Windows and if so if it is even possible to workaround?

Cheers,

-G
              __
--- == __/ t.O ==--
http://stacktrace.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090302/2e2c6fe5/attachment.html 


More information about the Qt-interest-old mailing list