Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. DefaultLocalizationStrategy.cpp(327) : “error C2001: newline in constant” in building 4.8.0
Forum Updated to NodeBB v4.3 + New Features

DefaultLocalizationStrategy.cpp(327) : “error C2001: newline in constant” in building 4.8.0

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 7.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ryocchin
    wrote on last edited by
    #1

    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.

    B 1 Reply Last reply
    1
    • jiapei100J Offline
      jiapei100J Offline
      jiapei100
      wrote on last edited by
      #2

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

      Cheers
      Pei

      Welcome to Longer Vision
      https://www.longervision.com

      1 Reply Last reply
      0
      • jiapei100J Offline
        jiapei100J Offline
        jiapei100
        wrote on last edited by
        #3

        Works for me... Thank you...

        Welcome to Longer Vision
        https://www.longervision.com

        1 Reply Last reply
        0
        • R ryocchin

          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.

          B Offline
          B Offline
          Bin Liu
          wrote on last edited by
          #4

          @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!

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved