I have a C library that I create as a shared object for Linux and a DLL for Windows with MinGW32. The API depends on several data files (statistical models) that I really would like to include in the SO / DLL so that the deployment is just one file.
It looks like I can achieve this for Windows with a โresource fileโ compiled using windres , but then I need to write a bunch of resource handling code for Windows, and I still stick to the files on Linux.
Is there a way to achieve the same functionality on Linux?
Better yet, is there a portable solution?
gcc cross-platform embedded-resource
cibyr Jan 04 '10 at 2:03
source share