Re: On the cost of libraries
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: veillard redhat com
- Cc: Owen Taylor <otaylor redhat com>, Maciej Stachowiak <mjs noisehavoc org>, Havoc Pennington <hp redhat com>, Darin Adler <darin bentspoon com>, Drazen Kacar <dave arsdigita com>, Alex Larsson <alexl redhat com>, GNOME Hackers <gnome-hackers gnome org>
- Subject: Re: On the cost of libraries
- Date: 03 Sep 2001 13:03:48 +0200
On Mon, 2001-09-03 at 10:43, Daniel Veillard wrote:
>
> First I completely agree with the need to have an explicit
> declaration of symbols made extern.
>
> On Sun, Sep 02, 2001 at 09:22:20PM -0400, Owen Taylor wrote:
> > The normal approach on windows is something on the order of:
> >
> > G_EXTERN void my_function_to_export ();
> >
> > Rather ugly, but certainly explicit.
> >
> > (For the GTK+ libraries, we actually have separately maintained .defs
> > files to keep track of exports for the Windows port - which is in no
> > way good, and we need to get away from one way or the other.)
>
> Same for libxml/xslt they manually keep a ref file and I break
> it each time I add an new API entry point :-\
> Also we had quite a bit of discussion about this and on Windows
> it seems just having a single EXTERN declaration wasn't completely
> sufficient (don't ask me why :-)
>
> All in all we need a solution to this problem, and we should have
> it implemented in Gnome2. I'm waiting for a candidate solution to propose
> to my Windows maintainer :-)
>
on windows, as far as I remember, you need to use a .def file where you
list all exported symbols. Symbols that are not listed in that file are
not exported at all.
cheers
--
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]