Why is the static library of the three-way library I'm using so much larger than its dynamic library?

46 views Asked by At

The three-way library I use is podofo: https://github.com/podofo/podofo for reading and modifying PDF files.

I have been using the dynamic version of the library provided by vcpkg, now I need to use the static version of the library from podofo, so I compiled a static library using the source code, but it was too big (about 130M), after that I used vcpkg to build the static library from podofo, it became even bigger (about 210M).

I know that static libraries copy in their dependencies, but the size of the dynamic versions of the libraries that podofo depends on when I add them up (about 30M) is also much smaller than podofo's static library file.

Am I doing something wrong there?

try: using "vcpkg install podofo:x64-windows-static" get podofo static lib.

expecting: Confirm that this is normal

If it is normal, is there any way to reduce the size of the static library.

0

There are 0 answers