How create a library? [closed]

只谈情不闲聊 提交于 2019-12-13 11:25:59

问题


How can I make my own GUI library e.g. SFML?

This question is for the purpose of understanding how GUI libraries work, not to actually make my own library.

I asked what I needed to do so. Can I open my editor and write some C++ code, importing some libraries and that's it. Or it's more complicated?


回答1:


Creating a shared and static library with the gnu compiler [gcc] : http://www.adp-gmbh.ch/cpp/gcc/create_lib.html




回答2:


A library is "just" a bunch of classes and functions, so you write it like a normal program. The only thing that is different is when you compile it: you have to create a static/dynamic library file.



来源:https://stackoverflow.com/questions/27741952/how-create-a-library

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