Re: static link w/gtk
- From: Tom Bech <tomb ii uib no>
- To: gtk-list redhat com
- Subject: Re: static link w/gtk
- Date: Tue, 24 Nov 1998 19:56:42 +0000
Matt Rosencrantz wrote:
>
> Hello,
>
> I have written a utility app in gtk, and now I am trying to give a copy to
> my brother, however, he cannot install the gtk libs on his machine. So, I
> would like to link the g* libs statically.
>
> Can someone tell me how to do this, stupid question I know, but I am
> relatively new to unix development.
>
> thanks for any help
>
gcc -static -o foo foo.c -lglib -lgmodule -lgdk -lgtk -letc etc.
Provided that there is any static (*.a) g*libs, of course.
'man gcc' :)
Tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]