[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GTK static libs
- From: "Shead, Tim" <tshead ebay com>
- To: "'gtk-app-devel-list redhat com'" <gtk-app-devel-list redhat com>
- Subject: Re: GTK static libs
- Date: Wed, 2 Feb 2000 11:26:21 -0800
> > 2. Is there a elegant method to compile one time with static, another
> > time with dynamic libs??
>
> Not that I'm aware of. Probably the elegant option doesn't exist because
> a) dynamic linking is the Right Thing [tm], and b) static linking is
*very*
> OS/compiler dependent (-static won't work on SGI IRIX, for example).
Dynamic linking with libmydynamiclib.so:
gcc -o foo foo.o -lmydynamiclib
Static linking with libmystaticlib.a:
gcc -o foo foo.o libmystaticlib.a
In other words, treat the library as if it were another object file, which
is what it really is, anyway (you have to know the path, of course).
Timothy M. Shead
tshead@ebay.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]