Building juju-core on Windows

John Arbash Meinel john at arbash-meinel.com
Thu Mar 14 03:50:46 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

...

>> 7) On Windows, 'strdup' is available as '_strdup', so you need a 
>> workaround like: +#ifdef WIN32 +#define strdup _strdup +#endif
>> 
>> There are a lot more funcs like this, but goyaml isn't calling
>> them directly.
> 
> Should be able to just define _CRT_NONSTDC_NO_DEPRECATE for this:
> 
> <http://msdn.microsoft.com/library/ms235384>
> 
> Martin
> 

This didn't actually work, probably because it is being compiled with
MinGW and not MSVC. My guess is that the actual functions in the CRT
are "_strdup" but setting the above header (and importing windows.h?)
will get you to import the "#define strdup _strdup" for you.

So I still need the #define, but I don't need libyaml.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFBSRYACgkQJdeBCYSNAANvYACeN+cJZFknxx8ffNaGuFzRddax
fZUAnR0aDgNDTm/I4c1p9zvYM1Aaiqho
=vFZj
-----END PGP SIGNATURE-----



More information about the Juju-dev mailing list