DefaultLocalizationStrategy.cpp(327) : “error C2001: newline in constant” in building 4.8.0
-
As I installed 4.8.0 from qt-win-opensource-4.8.0-vs2008.exe on my machine and tried to build it, nmake stopped with this error message;
DefaultLocalizationStrategy.cpp(327) : “error C2001: newline in constant”
.....It was built on English Windows 7 SP1(64-bit) with VS9, but I set "Language for non-Unicode programs" to Japanese as I work for some clients from Japan.
I switched it back to English and re-run the configuration(configure -platform win32-msvc2008 -debug-and-release) and then nmake. It went through without any error.
This is done by using "Control Panel" -> "Region and Language", and pressing "Change System Locale" on "Administrative" Tab to choose English as "Current System Locale". You have to reboot the PC.
After nmake is completed successfully, I switched it back to Japanese and 4.8.0 is working well so far.
This may not be a very common problem but I just wanted to share my experience for those who had failed by the same issue.
-
@ryocchin thank you so much, your post tipped me,
when I building 4.8.7 with a chinese page code(GB2312),
i got the same error.
How did I fix it: I just opened the file DefaultLocalizationStrategy.cpp by notepad.exe, and then saved it as a file what coded to 'UTF8 BOM',
then it working!