c++ - Linking a lib statically in VC++ -


Maybe I'm missing something here, but this is my first time on Windows that I necessarily link to a Lib There is a need to do so that the performance will not be dependent on DLL. I do it with LIBPNG

I do this like this:

  1. I added the lippyping header: C / C ++ -> Include additional directories

  2. Library Directory for Linker has been added: Linker -> General -> Additional Library Directories

  3. Added additional dependencies linker: Linker -> Input

Fix the exe. I'm getting this saying:

"Can not program because libpng16.dll is missing from your computer."

This means that libpng execution Not compiled in the right. How can i fix without

Therefore, if you have created libpng16 as a 'dynamic' lib / dll pair, then you will need the Dll part when you deploy it if you have created it as a 'stable' Lib, So you will find what you want.

The point is - you need to create a Lib in the format you want in the first place. It is not possible to pair a lib / dll and convert it to a static lib, nor is it possible to merge DLL into your executable. (Well, it is not possible after you have made it - possibly if you change the settings of lib and certainly recompile to produce in static script form)


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -