Embedding resources into executables built using GCC

from blog Kevin Boone's website, | ↗ original
Sometimes it's helpful to be able to create an executable program that embeds all the data it needs, and provide that data as files. C/C++ do not provide any standard way to do this, but GCC has facilities that the developer can use.