Statically linking GTK+ libraries in windows

↘锁芯ラ 提交于 2019-12-28 06:32:13

问题


I have installed GCC and GTK+. Its working fine, but i need to statically link GTK+ libraries with my application (it's a small application) so that there exist only one '.exe'.


回答1:


It is supported with a few minor issues (like having trouble finding configuration files), but you will have to compile GTK+ yourself! (the default binaries do not include static libraries)

See this mailing-list thread for more information on this issue.




回答2:


mingw-cross-env has fixes to build gtk and all related libs statically




回答3:


The correct answer would be two words: not supported. Really, if you want to distribute your application, being it 2 or 100000 lines, just bind a copy of GTK+ with it.



来源:https://stackoverflow.com/questions/1875855/statically-linking-gtk-libraries-in-windows

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