How create a library? [closed]

2019-10-10 04:54发布

问题:

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.



标签: c++ sfml