Static libpng link with visual studio 2010

主宰稳场 提交于 2019-12-03 21:04:48

To make all your libraries static, you would have to recompile everything "from scratch" as static libraries.

This simply means you should create a set of projects for each library you have in your sequence and set the output type to static library.

After that you should eliminate library dependencies between the libraries themselves (this means you should link the output of some projects to another projects, e.g. if your "libpng" library uses "libzip", it means you should first compile the "libzip" and link that output (static library) to your "libpng" project.

In the very end you would have a big set of static libraries compiled for your platform, which you can use in your projects.


Also to mention, try googling more carefully. I'm sure someone has this done and you would probably need to download a package of .lib files for your platform (I know that very often the "dev" bundle of libraries only includes an import library paired with appropriate .dll file, but there are a lot of enthusiasts like you :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!