On Tue, Sep 29, 2009 at 9:47 AM, Dos-Man 64 <[email protected]> wrote: > > Is there some way I can statically link the GTK+ library to the > executable? I seek to avoid the use of runtimes, especially since I > have no idea of how to create installation packages. Anyway, I'm a > big believer that no self-respecting c or c++ application should ever > require any type of external runtimes. That kind of crap is for wimp > languages like c#, java, and vb.
Dynamic linking is both a blessing and a curse to the Linux world. On the one hand, you have much smaller packages. On the other hand, you have dependency hell which is only partially solved by package managers (the degree of success is tied to your willingness to work with them rather than against them). There are merits to both approaches, but the general consensus is that dynamic linking is your friend (which has allowed Linux to progress to where it is today). If you want to statically link your app, you'll need to read up on the CLI arguments to pass to gcc, -static in particular. You may have to install additional packages (or compile them yourself) to get this to work as static linking is not very popular and your distro may not have the static version of the libraries. In my opinion, if you want to do this the "Linux way", you'd distribute the program as source only and not care about the linking. ~Ryan -- http://rmgraham.blogspot.com http://twitter.com/rmgraham --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
