Error different runtime libraries



  • 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?



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



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



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



  • Ok thx i will take more care with this



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.