Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Howto trans the code from the mingw to vs compiler
Forum Updated to NodeBB v4.3 + New Features

Howto trans the code from the mingw to vs compiler

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 189 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.
  • N Offline
    N Offline
    nicker player
    wrote on 18 Sept 2022, 02:55 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 18 Sept 2022, 07:00 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

      1/2

      18 Sept 2022, 02:55

      • Login

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