Connecting Tech Pros Worldwide Forums | Help | Site Map

Is it safe to use /NODEFAULTLIB

Matej Trampus
Guest
 
Posts: n/a
#1: Jul 21 '06
Hi,

I am compiling my code with /MT flag and linking it with some external
libraries. Ia am getting the following error:

LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; us
e /NODEFAULTLIB:library

I have read the KB article Q140584.

It looks like external library was compiled with /MD switch and wants to
link to MSVCRT.

Question: Is it safe to use /NODEFAULTLIB:MSVCRT.

I am creating a COM component and do NOT pass around pointers that should be
freed.

Thanks,
Matej

Closed Thread


Similar .NET Framework bytes