简体   繁体   中英

VS C++ multiple projects to one dll

I have a solution with multiple projects (Visual Studio 2010) that compile to static libraries (some compile to dll but naturally generate also a library). All written in C++. I want to provide my solution packed in one dll. So I want to generate from all projects one DLL, that is pack them all into one DLL, what's the best way to do it?

I'm not sure this is the best way to do this, but it'll work:

  1. Create the DLL project that amalgamates the rest of the libraries
  2. Statically link all the other libraries to this project
  3. Write forwarding functions for each interface function from the other libraries
  4. Export these forwarding functions from your DLL

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM