1

I want to use BerkeleyDB in my project, but I plan to distribute the final program as an .exe file. How can I compile a program by adding both BerkeleyDB dlls to it so that I end up with a single executable that runs on machines that don't have those dlls?

P.S. I have read all similar questions, Properties -> C++ -> Runtime Library -> /MT and Properties -> Use MFC in a static library don`t work.

Chase
  • 43
  • 4
  • 2
    just use static libraries instead of dlls? – Alan Birtles Sep 24 '22 at 10:49
  • 1
    Why don't you just use an installer? Or is it important that the exe runs "out of the box"? – PMF Sep 24 '22 at 10:55
  • @PMF Yes, it`s important, I`m writing a program that I plan to distribute as an exe file. – Chase Sep 24 '22 at 10:56
  • @AlanBirtles I am beginner in this, I already read [this guide](https://learn.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-static-library-cpp?view=msvc-170), but it didn`t help me in this case – Chase Sep 24 '22 at 10:59
  • I found a [issue](https://stackoverflow.com/questions/23844887/how-to-include-all-dlls-in-exe) similar to yours, I suggest you read it carefully. – Yujian Yao - MSFT Sep 26 '22 at 08:49

0 Answers0