[mythtv] [PATCH] Win32 frontend support

Dan Conti dconti at acm.wwu.edu
Tue Jan 20 12:40:04 EST 2004


> -----Original Message-----
> [mailto:mythtv-dev-bounces at mythtv.org]On Behalf Of Ian Caulfield
> Sent: Tuesday, January 20, 2004 2:41 AM
> Subject: Re: [mythtv] [PATCH] Win32 frontend support
>
> Unfortunately I haven't found a way around it yet - when Windows builds a
> DLL,
> it needs to resolve all its inputs at linktime. I haven't found a way to
> convince the linker that the gContext symbol will be available at runtime.
> I'll see if I can figure it out - if anyone else knows much about Windows
> DLL
> imports, they're welcome to give advice.

Have you played around with __attribute__((weak)) ? This may or may not work
on cygwin, but it does exactly what you want it to. Basically you would
conditionally define gContext in libmyth as a weak linking variable, then
when the dll is dynamically linked in it would override the weak definition
in libmyth with the global definition.

-Dan



More information about the mythtv-dev mailing list