Cannot compile a simple Qt program in MT mode as opposed to MD in Visual Studio 2010

后端 未结 3 1935
暗喜
暗喜 2020-12-31 11:32

I\'m trying to compile using MTd in Visual Studio 2010 instead of MDd (so that the dll\'s are packaged in and i won\'t need to distribute them with my exe), but I keep getti

3条回答
  •  太阳男子
    2020-12-31 11:50

    You are linking your program statically and linking against libcmt, but at the same time, linking in code from the Qt DLLs, which are, as the name already says, dynamically linked against msvcrt.lib.

    You will need to either link dynamically or recompile Qt from source as static, which isn't hard, but time-consuming.

提交回复
热议问题