<div dir="ltr">I do have a bit of experience with windows/linux C code interop, and while Visual C++ tends to be somewhat... unpredictable (It's getting much better than it used to be), I can tell you that...<div><br></div><div>x86_64-w64-mingw32-gcc<br><br>will output binaries that will happily run on windows, so long as you're using a version at least as new as is provided with Debian Jessie. (the wheezy version produced broken binaries). Wine can then be used to test them quite reliably. That compiler comes with enough windows libraries and headers to do most reasonable jobs, and quite a few unix headers mangled to work in windows environments.<br><br>sudo apt-get install mingw-w64</div><div><br></div><div>There's a 32bit version if you're that way inclined (which is also broken on wheezy), although I haven't used it recently enough to recall it.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">regards,<div><br></div><div>dan</div><div>--</div><div>"The world is full of magical things patiently waiting for our wits to grow sharper." - Bertrand Russell<br></div></div></div></div>
<br><div class="gmail_quote">On 20 September 2016 at 21:55, David Gibson <span dir="ltr"><<a href="mailto:david@gibson.dropbear.id.au" target="_blank">david@gibson.dropbear.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Sep 20, 2016 at 12:21:25AM -0600, Kevin Locke wrote:<br>
> Hi David,<br>
><br>
> Thank you for taking the time to review these patches, especially for a<br>
> platform that you don't have a strong stake in. I really appreciate it.<br>
><br>
> On 09/19/2016 10:48 PM, David Gibson wrote:<br>
> > On Sun, Sep 18, 2016 at 06:51:57PM -0600, Kevin Locke wrote:<br>
> > > This patch series adds support for building configurator with Microsoft<br>
> > > Visual C++ and running it on Windows. The motivation is to add<br>
> > > sufficient support for Windows to allow using header-only modules<br>
> > > with minimal hassle. For me, this patch series is sufficient, so I<br>
> > > don't have any further plans for changes to other files or the build<br>
> > > system at the moment.<br>
> ><br>
> > First, thanks for this. ccan isn't supposed to be platform specific,<br>
> > but it kind of is at the moment, simply because most of the<br>
> > contributions have been from Linux developers. I'm really happy to<br>
> > see some work to make it useful on different platforms.<br>
> ><br>
> > Second, because I'm not and have never been a Windows dev, my ability<br>
> > to review these is limited - so I'm inclined to apply anything that<br>
> > doesn't break builds on Linux / POSIX.<br>
> ><br>
> > Third, because most of the main ccan contributors are not Windows<br>
> > devs, I'm a bit worried about bitrot. If you can think of any way of<br>
> > making some kind of automated smoke test form builds on Windows, that<br>
> > would be terrific. Otherwise, I guess we'll just hope for the best.<br>
><br>
> I think that's a very legitimate concern. I'm not a frequent Windows<br>
> developer myself, but had a need for a current project. I've tried to<br>
> minimize the amount of Windows-specific code, with good results I think, but<br>
> that's obviously not much of a guarantee that it won't rot or subtly break<br>
> on Windows going forward.<br>
><br>
> I've seen <a href="http://appveyor.com" rel="noreferrer" target="_blank">appveyor.com</a> used quite often for Windows CI, and it is free for<br>
> FOSS projects. I'd be happy to work up some basic smoke tests if it seems<br>
> like that might be useful and not too much of a maintenance burden. Let me<br>
> know what you think.<br>
<br>
</div></div>Sounds good to me.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
David Gibson | I'll have my music baroque, and my code<br>
david AT <a href="http://gibson.dropbear.id.au" rel="noreferrer" target="_blank">gibson.dropbear.id.au</a> | minimalist, thank you. NOT _the_ _other_<br>
| _way_ _around_!<br>
<a href="http://www.ozlabs.org/~dgibson" rel="noreferrer" target="_blank">http://www.ozlabs.org/~dgibson</a><br>
</div></div><br>______________________________<wbr>_________________<br>
ccan mailing list<br>
<a href="mailto:ccan@lists.ozlabs.org">ccan@lists.ozlabs.org</a><br>
<a href="https://lists.ozlabs.org/listinfo/ccan" rel="noreferrer" target="_blank">https://lists.ozlabs.org/<wbr>listinfo/ccan</a><br>
<br></blockquote></div><br></div>