Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Howto trans the code from the mingw to vs compiler
Qt 6.12 LTS is out! See what's new in the release blog

Howto trans the code from the mingw to vs compiler

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 578 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.
  • nicker playerN Offline
    nicker playerN Offline
    nicker player
    wrote on last edited by
    #1
    #if _MSC_VER >= 1600
    #pragma execution_character_set("utf-8")
    #endif
    

    Now i want to transform the code of the mingw into the vs style.Someone said that need to add the code upside.Its a lot of works that added the code into every file.So is there a simple way to add the code?Anything like using the macro code or adding the varieties of the compiler process?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @nicker-player said in Howto trans the code from the mingw to vs compiler:

      #pragma execution_character_set("utf-8")

      Hi
      https://learn.microsoft.com/en-us/cpp/preprocessor/execution-character-set?view=msvc-170

      says
      "This compiler directive is obsolete in Visual Studio 2015 Update 2 and later versions."

      What happens if it's not included?

      Also do you use such old Vs version ?

      1 Reply Last reply
      0

      • Login

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