[mythtv] [PATCH] Win32 frontend support

John Pullan jmp at tarantella.com
Tue Jan 20 09:12:49 EST 2004


On Tue, 2004-01-20 at 10:41 +0000, Ian Caulfield wrote:
> --On 20 January 2004 04.28 -0500 Isaac Richards <ijr at po.cwru.edu> wrote:
> 

> >> The most significant change I've made is to move the definition of the
> >> gContext variable into libmyth - this is necessary in order to allow
> >> compilation under windows, and I don't think it should affect Linux
> >> users. Please correct me if I'm wrong.
> >
> > You can't have it export that symbol to the libs?  I'd like to keep
> > things the  way they are in this respect, unless really necessary..
> 
> 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.
> 
First off I've never done this, but I had a quick search and came up
with the use of dllexport and dllimport. I think it does what you want
but I'm not sure how/if it applies to the cygwin compiler (?)

Refs:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/
vccelng/htm/msmod_20.asp
http://lists.trolltech.com/qt-interest/1998-05/msg00037.html


-- 
John Pullan <jmp at tarantella.com>



More information about the mythtv-dev mailing list