[PATCH] libcxx random_device for Win32

Yaron Keren yaron.keren at gmail.com
Tue Oct 8 13:21:59 PDT 2013


Hi Kim,

MingW uses MSVCRT as the C library, with some required additional
functions.
It indeed uses libstdc++ as its C++ library.
The two libraries are separate creatures with different licenses.

Yaron


2013/10/8 Kim Gräsman <kim.grasman at gmail.com>

> Hi Yaron,
>
> On Tue, Oct 8, 2013 at 10:04 PM, Yaron Keren <yaron.keren at gmail.com>
> wrote:
> >
> > MingW does use MSVCRT unlike Cygwin that provides independent library,
> so it
> > provides rand_s() as well. For MingW-builds you can find rand_s()
> prototype
> > in:
> >
> > c:\Program Files
> >
> (x86)\mingw-builds\x32-4.8.1-win32-dwarf-rev5\mingw32\i686-w64-mingw32\include\stdlib.h
> >
> > The import libraries libmsvcr*.a are in the lib directory.
>
> Huh, I was under the impression that MinGW used a variant of
> libstdc++, sorry for the noise!
>
> - Kim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131008/5fdb5f82/attachment.html>


More information about the cfe-commits mailing list