Merge several native DLLs into one DLL

Motti picture Motti · Sep 28, 2008 · Viewed 14.7k times · Source

I've got a lot of small DLLs which I would like to make into one big(er) DLL (as suggested here). I can do so by merging my projects but I would like a less intrusive way.

Can several DLLs be merged into one unit?

A quick search found this thread that claims this is not possible. Does anyone know otherwise?

Note that I'm talking about native C++ code not .NET so ILMerge is out.

Answer

Kasprzol picture Kasprzol · Sep 28, 2008

I don't know about merging dlls, but I'm sure you can link the intermediate object files into one dll. This would only require changes in your build script.