Re: [PATCH 0/9] configurator: Support for Windows and MSVC

David Gibson <[email protected]> Thu, 22 Sep 2016 12:00:31 +1000
Newsgroups org.ozlabs.lists.ccan
Message-ID <[email protected]>
On Tue, Sep 20, 2016 at 11:46:23PM +0930, Daniel Burke wrote:
> 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...
> 
> x86_64-w64-mingw32-gcc
> 
> 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.
> 
> sudo apt-get install mingw-w64
> 
> 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.

Thanks for the info.  We should try to get some mingw builds and wine
tests into Travis (although at the moment the Travis builds are
already broken due to a problem on clang I haven't had a chance to
debug :).

However, as noted elsewhere, mingw shouldn't be our only or primary
way of building for windows.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

_______________________________________________
ccan mailing list
[email protected]
https://lists.ozlabs.org/listinfo/ccan
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJX4zs/AAoJEGw4ysog2bOSvlIQAOWI4hmWTDXKGqRqhQZt0ZSa
4VBN2tzM/cABzrwlZmXBEJ8mBgOAwJNiCkqo4THnQY+zWFjHY/YJrezfzFoBBgub
ZkM6b/cqYxMITbBt0dy9ugWeutXyXsu5PXSnf+VjTXmbh4XQhi4EW0KbUFBLQM7+
BrdDAaP/58qFhZhUJJ+/4+PgSA5+VcgtEfO8imaIy0JqjnL+Ezfn9FW9DypUeWe5
IG9WkTjRqECHprPK3tshPFor3BkSeAoxXxGZIiajpQs+DuvyUpeh/7mMnI0g2W0j
A8yC9510jkd9JTawOMp+wkR/B/PKNpWyvdkBuMssUzr1jVfs210/QekL9a3aDoFe
3EwAitItErRDOIYi5oXH4SPUq5VnTeGLFAW9xvhHcUokFZCUu6AkQkKVsANRg05i
nQgX/utIEYE6hMsYXwwclzddSk5q3m6dOgTo++nqHJJtv7K9WQBV/FKH7olGEtqZ
NHItIR/79Tk+UIn1zkL2tNafS2UOgMOatSpo6b3yuU6VINnRqvSBmnb2sKj2CoS9
FzaWxxJpy8Vyx48RysF7s/fgqTotvgxyN09nQyZyOlrEQUkP/q7evAI3WDf4eNLY
GQpCzW74QAia8/GHXRE35shlbqT+alY62Yd29dBt81FxTuBENUXpeINecmyCIORH
2Jxu+cwLpUibu/zRmnK8
=jbdN
-----END PGP SIGNATURE-----