[mythtv] Ticket #4516: Fix broken Win32 build (circular references out of control again).

Nigel Pearson nigel at ind.tansu.com.au
Wed Jan 23 23:30:36 UTC 2008


On 24/01/2008, at 8:44 AM, Andrei Tanas wrote:
>
> I will elaborate on this: with this change, global variables (gContext
> specifically) is "seen" as having different addresses when  
> referenced by
> code from different files. For example, when mythfrontend/main.cpp
> initializes gContext, the variable will be assigned the address of  
> the new
> instance. However, when referenced by code from libmythupnp (don't  
> know
> about others, couldn't get past this one), it will think that the  
> value of
> gContext is something else (seemed random to me, don't know where  
> it got if
> from).

Thanks. That is helpful.

(although I don't know why it is only a problem with globals
  - if a symbol is defined in lib*bootstrap.a,
    then that is what should be used by the local lib)


I will try and research dlltool to see what options there are.
I'm hoping that there is some way to specify a symbol,
but without actually defining a global in lib*bootstrap.a


Note that I haven't had time to play in MinGW today,
and have a lot of work to do, so this may take a few days.
But I'm hoping we can use this structure without reverting.

--
Nigel Pearson, nigel at ind.tansu.com.au|"In this city I confess;
Telstra Net. Eng., Sydney, Australia | god is mammon, more is less.
Office: 9202 3900    Fax:  9261 3912 | Off like lemmings at the gun!
Mobile: 0408 664435  Home: 9792 6998 | I know better, still I run"


More information about the mythtv-dev mailing list