Original Post
Because of redistributability issues I want to strictly remove external dependencies on all non-system dynamic link libraries. I don't mind if relevant portions of the code are stored in my own code - I'm simply having some trouble redistributing these external libraries because of containment issues (since portions of the program I'm writing will be re-redistributed by users, I'd need to contain all externally linked DLL's in the package - just in case; this, however, is kind of pointless given the fact that the user would have to deal with these explicitly. Also - MSVCR90.dll alone is almost 700 kB, which is slightly prohibitive in my case; not to mention redundant). How can I force the linker to include the relevant code portions in the original distributable? To be more specific - currently the following functions are being referenced in MSVCR90.dll: void * __cdecl operator new(unsigned int) void __cdecl operator delete(void *) void __cdecl terminate(void) _except_handler4_common _crt_debugger_hook _CIsin public: void __thiscall type_info::_type_info_dtor_internal_method(void) [?_type_info_dtor_internal_method@type_info@@QAEXXZ] These don't look very MSVC-specific in the first place (that is, why are they referenced in MSVCR90.dll in the first place not some system DLL?).