Hi,
There are 4 versions of the CRT link libraries : CRT Library Features
1,libcmt.lib: static CRT link library for a release build (/MT)
2,libcmtd.lib: static CRT link library for a debug build (/MTd)
3,msvcrt.lib: import library for the release DLL version of the CRT (/MD)
4,msvcrtd.lib: import library for the debug DLL version of the CRT (/MDd)
Linker Tools Warning LNK4098 will happen if you link code that was compiled with /MT with code that was linked with /MD. There can be only one version of the CRT.
For example, when your executable uses the multi-threaded, non-debug run-time libraries, the list reported should include LIBCMT.lib, and not LIBCMTD.lib, MSVCRT.lib, or MSVCRTD.lib. You can tell the linker to ignore the incorrect run-time libraries by using /NODEFAULTLIB for each library you want to ignore.
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.