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. Error different runtime libraries

Error different runtime libraries

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.4k 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.
  • RIVOPICOR Offline
    RIVOPICOR Offline
    RIVOPICO
    wrote on last edited by RIVOPICO
    #1

    Hi i am trying to compile project but i get this message:
    qtmaind.lib(qtmain_win.obj):-1: error: LNK2038: se detectaron diferencias para 'RuntimeLibrary': el valor 'MDd_DynamicDebug' no coincide con el valor 'MTd_StaticDebug' en main.obj

    So i think because i was using differents libraries so i dont know how to solve. any suggestion or idea?

    1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      I think it's related to the VS settings: you seem to be mixing multi-threaded debug libs and single-threaded debug libs (The MDd and MTd).

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      1 Reply Last reply
      1
      • RIVOPICOR Offline
        RIVOPICOR Offline
        RIVOPICO
        wrote on last edited by RIVOPICO
        #3

        Ok for dynamic what i need to use? and for static? I want to know if i can mix two different libraries. I change settings pro file to do that. Maybe i need to do some change in vs too? or only if i put in pro file is enough? Thanks in advance.

        JohanSoloJ 1 Reply Last reply
        0
        • RIVOPICOR RIVOPICO

          Ok for dynamic what i need to use? and for static? I want to know if i can mix two different libraries. I change settings pro file to do that. Maybe i need to do some change in vs too? or only if i put in pro file is enough? Thanks in advance.

          JohanSoloJ Offline
          JohanSoloJ Offline
          JohanSolo
          wrote on last edited by
          #4

          @RIVOPICO said in Error different runtime libraries:

          Ok for dynamic what i need to use? and for static? I want to know if i can mix two different libraries. Thanks in advance.

          IIRC you need to ensure every used libs have the same setting, no matter what it is.

          `They did not know it was impossible, so they did it.'
          -- Mark Twain

          1 Reply Last reply
          0
          • RIVOPICOR Offline
            RIVOPICOR Offline
            RIVOPICO
            wrote on last edited by RIVOPICO
            #5

            Ok thx i will take more care with this

            1 Reply Last reply
            0
            • RIVOPICOR Offline
              RIVOPICOR Offline
              RIVOPICO
              wrote on last edited by
              #6

              anyways i think to it's something of visual studio i dont know why visual studio is mixing multi-threaded debug libs and single-threaded debug libs

              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 Extensions
              • Unsolved