AW: Dynamic linking.. or??

Ralf Habacker Ralf.Habacker@saght.tessag.com
Wed May 23 07:32:00 GMT 2001


Ralf Habacker
EMail: Ralf@habacker.de
       Ralf.Habacker@saght.tessag.com

> -----Ursprüngliche Nachricht-----
> Von: cygwin-xfree-owner@sources.redhat.com
> [ mailto:cygwin-xfree-owner@sources.redhat.com]Im Auftrag von Robert
> Collins
> Gesendet am: Mittwoch, 23. Mai 2001 14:34
> An: Ralf Habacker; Cygwin-Xfree
> Betreff: Re: Dynamic linking.. or??
>
> ----- Original Message -----
> From: "Ralf Habacker" <Ralf.Habacker@saght.tessag.com>
> > >
> > Whats about the auto-import feature from Paul Sokolovsky, how has
> removed
> > this limitation ?
> >
>
>
> It hasn't. It's removed the need to declare the imports, not the
> behaviour of the imports. There was a patch recently for gcc C++ static
> constructors... that is related to this issue. (No solution for us
> AFAIK).

Excuse me, but do you mean something like this

-- defined in dll -----------
extern int var;
extern void print_var();
extern void print_foo();
extern int foo;

typedef struct {
  int *var;
  void (*func_ptr)();
} TEST;

--- used in client -------
// global var and function imported from dll
TEST xyz = { &var, print_var };

that I'm using on qt and kde with this patch desribed.

Ralf



More information about the Cygwin-xfree mailing list