Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT CREATOR - where do I put the /NODEFAULTLIB:library?

Tags:

c++

linker

qt

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 ?

like image 676
rreeves Avatar asked Jun 28 '13 18:06

rreeves


1 Answers

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.

like image 98
Huy Avatar answered Oct 03 '22 06:10

Huy