[mythtv] Ticket #4497: Win32 builds broken after r15435

Jerry Rubinow jerrymr at gmail.com
Tue Jan 22 14:10:51 UTC 2008


On Jan 22, 2008 12:50 AM, buzz <davidbuzz at gmail.com> wrote:

> Andrei,
>
> > It's the "chicken and egg" situation. You can't generate .def files
> > using
> > this tool (or other tools) because in theory, you don't have any .dll's
> > yet
> > (you do from previous builds but that's not the point).
> >
> <hopefully not too nieve a question>
> Well actually, I think that is the point... Since we do have dll's being
> successfully built (for some SVN revisions), why not just create a .def file
> automatically from these? (using dll2def or pexports?)  If you want to be
> thorough, you could re-create the .def file after a successful .dll is
> built, and emit some meaningful warning/error message if it's different than
> the one used the first-time-round?
>
> wouldn't that work?
> <end question>
>

No, because any time the signature for any exported function changes, you'd
have a .def file generated from a previous version (without the change),
trying to use it to link code with the change.

Suppose in version 1 you had function int foo(int a).  You generate a .def
file from that.  Then in version 2, foo gets a second parameter: int foo(int
a, bool b).  Version 2 is not yet compiled, so you use the .def file
generated from V1, and it's not going to link.

-Jerry

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080122/c48b5cc4/attachment.htm 


More information about the mythtv-dev mailing list