tags:

views:

301

answers:

2

I'm building a c++ DLL in visual studio 2008.

For some reason, even when I build in release mode, my dll still depends on msvcr90d.dll. I can see that using depends.exe

Is there any way to figure out what is causing this dependency? My run-time library setting is /MD

Thanks, Dan

+3  A: 

In the Project properties go to the "Configuration Properties"/Linker/General panel. Change the "Show Progress" property to "Display All Progress Messages (/VERBOSE)".

The linker will now tell you exactly why it's pulling in msvcr90d.dll

If you're building from the command line, use the /VERBOSE linker option (obviously).

Michael Burr
+1  A: 

May be a very dumb answer..but isn't exploring the tree structure displayed in the depends.exe show which dll is causing msvcr90d.dll linkage?

Naveen