Re: static link w/gtk



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]