QT gives the errors
LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
where do I put the /NODEFAULTLIB:library ?
QT gives the errors
LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
where do I put the /NODEFAULTLIB:library ?
Some one with your very issue posted something on the Qt forums a while back.
Which sounds like passing in one of the additional options should help.
So in your .pro file:
// This
QMAKE_CXXFLAGS += /MD
// Or that
QMAKE_CXXFLAGS += /MT
And don't forget to run qmake to make sure the makefile arguments absorb the changes made to the .pro file.
As far as I can tell this is a undocumented feature, but this is where you put it in QT Creator 2.6.2 w/ QT 4.8.4 (in the .pro file)
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../LIBRARYNAME/Lib/ -lLIBRARY /NODEFAULTLIB:library
This is how I did it under Qt5:
QMAKE_LFLAGS += /NODEFAULTLIB:LIBCMT