error: unable to find string literal operator "" SLASHES
Asked Answered
C

1

11

I'm trying to build qtCreator 2.3 with gcc 4.7 and I'm getting following error:

error: unable to find string literal operator ""

I'm using mingw32-make -lto as qtCreator source dir. Any thoughts?

Claraclarabella answered 26/4, 2012 at 8:41 Comment(1)
What do you mean by "SLASHES"? Is there more to the error than you're showing here?Basin
W
28

Just Googled this and saw the following comment on this page

The subject error occurs because in the new c++11 a space between string concatenation is mandatory

It may be related to what you're seeing.

Warrick answered 26/4, 2012 at 9:8 Comment(1)
apparently this is legal: #define TEST(Name) "TEST" Name"TEST" but this is not: #define TEST(Name) "TEST"Name"TEST", so you have to have a space after the literal, but not before?! Oh well... Thanks, that fixed my problem!Aphra

© 2022 - 2024 — McMap. All rights reserved.