January 20, 2012

ryocchin ryocchin
Lab Rat
5 posts

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 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.

2 replies

February 26, 2012

jiapei100 jiapei100
Lab Rat
25 posts

I’ve exactly the same problem. And now testing your solution !! Hope it works for me as well.

Cheers
Pei

 Signature 

Welcome to Vision Open
http://www.visionopen.com

March 2, 2012

jiapei100 jiapei100
Lab Rat
25 posts

Works for me… Thank you…

 Signature 

Welcome to Vision Open
http://www.visionopen.com

 
  ‹‹ Compiling Qt 5 on Windows 7      Qt-4.7.3 installation problem: ‘define’ does not name a type ››

You must log in to post a reply. Not a member yet? Register here!