[Mono-dev] Small issues with the Windows msvc builds, and how I got around them

Alex Forster alex at alexforster.com
Sun Aug 25 17:10:49 UTC 2013


Referring to commit 29c42bf0dc— just a few tips on how I got the -sgen configurations to compile in 32bit release mode with Visual Studio 2012.

First issue—

msvcrt apparently doesn’t implement _strtoull(). According to this Connect article[1], the functionality exists as _strtoui64().

So, as a comment in the Connect article suggested, in eglib\src\glib.h I added this at around line 275 inside of the _MSC_VER ifdef…

#define strtoll     _strtoi64
#define strtoull    _strtoui64

Second issue—

The profiler-cov project links to mono-2.0.lib, but for the -sgen builds, it should be linking to monosgen-2.0.lib. I know the .csproj’s are generated from the makefiles so this isn’t a “real” fix, but all it took for me to get the project to build was to make the project link to the correct library.

The x64 build fails miserably because the __asm keyword isn’t supported by Microsoft’s x64 compiler.

Alex Forster


[1] http://connect.microsoft.com/VisualStudio/feedback/details/758053/missing-strtof-strtold-strtoll-strtoull-functions-from-stdlib-h

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130825/e0395e1a/attachment.html>


More information about the Mono-devel-list mailing list