We are still on Qt4.7 in our workplace, so bear in mind this could be a known bug fixed in later versions. I have googled for this problem and it is possible I am not using correct terms. Here goes.
In my .pro file I have:
win32
{
DEFINES += LOGFILE_DIR=\\\"C:\\ProgramData\\Foo\\Logs\\\\\"
}
unix
{
DEFINES += LOGFILE_DIR=\\\"/var/log/Foo/\\\"
}
Where "Foo" is our company name.
This builds and runs fine on Linux. When I try to build this on Windows, moc.exe chokes on any header file it parses. With "chokes" I mean; it starts the parse but never completes.
If I change the DEFINE to:
win32
{
DEFINES += LOGFILE_DIR=\\\"C:\\ProgramData\\Foo\\Logs\\ \\\"
}
(note the added space)
Then moc.exe runs just fine, but I now end up with a space at the end of my string that I just do not want.
Are there any special characters that moc.exe would parse, but otherwise ignore?