GNOME Bugzilla – Bug 412241
not supported in systems which doesn't have gtk installation
Last modified: 2007-02-26 16:51:21 UTC
we have successfully created a gtk binary executable in Fedora 6 by using the command gcc filename.c -o filename `pkg-config --cflags --libs gtk+-2.0`. but this executable is not running in systems which doesn't have gtk installed please any one of u suggest me how to create a gtk application which is executes in all linux distributions Other information:
The way that you are compiling and linking will result in a dynamically linked executable. What you seem to want is a statically linked executable. If you can show that there is a bug in gtkmm that prevents static linking, please re-open this bug with additional information. Otherwise, this doesn't seem to be a gtkmm issue. It's simply a matter of how you choose to link your executable. Note, however that gtkmm's license (LGPL) prohibits certain types of applications from linking it statically. See http://www.gnu.org/licenses/lgpl.html#SEC1 for more information.