Linux Is there a way to have a simple static library containing resources?

Possible duplicate:
Is there a Linux equivalent for Windows resource files?

I am trying to find a way to embed a resource in a static library to link to a C source using the gcc toolchain. Equivalent to the Windows DLL in which resources are embedded. Can this be done using the linux static library?

In short, it will, for example, do this cat someresourcedata.txt > mylib.aand be able to associate it with compiled C code that references mylib.a.

Any ideas or suggestions?

+3
source share
2 answers

, include. , XPM:

/* XPM */
static char * my_xpm_image[] = {
"16 16 15 1",
"       c None",
".      c #000000",
"+      c #7FFFFF",
"@      c #007F7F",
....

lib ( - , lib, ).

0

* nix "", Windows; , , .

0

Source: https://habr.com/ru/post/1729774/


All Articles