Why does binding to static runtime libraries in Visual C ++ 2008 still require MSVCR71.dll at run time?

I am creating a dll statically linked to c runtime libraries. Why does it require MSVCR71.dll at runtime?

+4
source share
2 answers

msvcr71.dll is the Visual C ++ 2003 C runtime. If you have been building since 2008, there is no reason why there should be a link to this DLL. I assume that you are dependent on another DLL that has been built since 2003 and that uses a dynamically linked runtime.

+5
source

Perhaps you are linking to the LIB import library for the DLL - make sure you use the /MT linker option and not /MD

http://msdn.microsoft.com/en-us/library/abx4dbyh(v=VS.90).aspx

MSVCR71.dll does not look like the correct version of the runtime for VS2008. Are you linking to any other third-party libraries that require older runtimes?

+1
source

All Articles