If you're going to expect your compiled programs to run on any system, without re-compiling, they will have to be statically linked, or distributed with copies of the libraries in question, and a shell script wrapper to set the library path.
Even then, they'll only run on the arch they're compiled for. That's one of the easy things about interpreted languages. If your program is not math-intensive, (like the one you've written), you can easily make an interpreted-language version that will run *without modification* on several platforms (i.e. I'm fond of doing this with python; Tkinter, GTK and QT4 all allow the creation of programs that run on windows, linux, and mac, on any processor, without any modification whatsoever. You just run it. On Sun, Feb 14, 2010 at 11:49 AM, Dos-Man 64 <[email protected]> wrote: > > > On Feb 14, 10:19 am, Dos-Man 64 <[email protected]> wrote: > > On Feb 13, 6:08 pm, Chris Miller <[email protected]> wrote: > > > > Any ideas why my applications never run on Sabayon? Nothing happens > > > > when I double-click on them. It's a mystery. > > > > > What's a 'click?' Why aren't you using GCC or LLVM? It's a mystery. > :P > > > > I put my applications on the Sabayon desktop and run them by double- > > clicking on them. Nothing happens. The language used doesn't seem to > > matter. One of my C programs doesn't work either.- Hide quoted text - > > > > - Show quoted text - > > Wait, I think I figured it out. There is some type of shared library > missing. That's why it won't run... > > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup > -- Daniel -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
