Adding a Resource File to a UNIX Library

To add a resource file to a UNIX library, add the following two lines to a module in the library that you know will be called by your final application (such as, the library initialization module):

extern IlUInt IL_MODINIT(<name>Resources)();

static IlUInt forceRes = IL_MODINIT(<name>Resources)();

ilv2data generates a file name with the following format: <name>.cpp.