Subj : Re: Object File Resources for Linux To : comp.os.linux From : Paul Nolan Date : Tue Aug 17 2004 01:23 am David Ashley wrote: > Paul Nolan wrote: > >> Do you mean linking a library into a program? all that needs is >> ld .... -l$LIBRARY_NAME -L$LIBRARY_PATH >> Then the library is included and dynamically linked (unless you use >> the ld option -static >> >> > > No, I want to include a file containing some xml into the executable and > be able to reference the file contents either through an API or through > a global variable name. > > My problem is that, for this application, I cannot ship multiple files, > I can only ship an executable that is self-contained. But for > development and maintaince it would be much better to separate the xlm > from the code. > > Any ideas? I've seen executables that start with a shell script, then there is extra stuff on the end (I think it's a tarball, but not sure) that is uncompressed at runtime. eg. the nVIDIA binary driver installer. Is this what you need (I'm not particularly good at bash yet, but chances are someone who is will tell you how to do it ^_^) -- Paul Nolan Veni veni venias - ne me mori facias! .