How to change the C++ Runtime Library setting in QtCreator?

前端 未结 4 1403
小蘑菇
小蘑菇 2021-01-08 00:47

I\'m absolutely new to Qt. I\'ve made a program using C++ in Visual Studio 2010 in which I use the external library from Dcmtk. I now want to add a user interface to that pr

4条回答
  •  感情败类
    2021-01-08 01:41

    /MT is a compiler flag. You can specify flags in your .pro file like this:

    QMAKE_CXXFLAGS += /MT

    Moreover, you probably want to specify /MTd for debug build:

    Release:QMAKE_CXXFLAGS += /MT
    Debug:QMAKE_CXXFLAGS += /MTd
    

提交回复
热议问题