A
A
Ashimakunov2020-03-26 17:50:56
C++ / C#
Ashimakunov, 2020-03-26 17:50:56

How to reduce the weight of C ++ exe with additional lib and dll plug-ins?

connected to my program exe C ++ VS 2019 add. sqlite3.lib libraries, everything works with a bang, but there is a problem. The program itself after compilation weighs 9 kb without lib, and after lib 816 kb. This is a lot, you need to reduce it to at least 200kb. Why is this happening. Moreover, I compile in release and use 3/23 functions from the library. What to do and how to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2020-03-27
@saboteur_kiev

1. either use the entire library, or not at all. You can't take a piece.
2. Either use shared libraries, but then they should already be on the computer, and if these are not standard Windows libraries, the user will have to install them separately from your program.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question