From: Kai R. <kai...@lu...> - 2001-01-02 08:55:52
|
Christian Koch wrote: > > Lonnie Waugh wrote: > > > Is there any way to get these functions (random/srandom) > > over to the mingw32 GCC? it currently works perfectly well > > under linux and cygwin .. but I do not like having to > > include that cygwin1.dll file each time I put out this > > ported version.. > > You may try linking against libiberty.a Looking more this issue, I found the protos for these functions missing from (at least my) 'stdlib.h', the Mingw-version. And no 'libiberty.h' (coming e.g. in 'gcc-2.95.2/include') was present. And no evidences about any fixing of the libiberty, at least in the 'libiberty.h', for Mingw was seen... So, is the libiberty-package ever checked for Mingw ? Do the 'missing' functions work under Mingw ? I haven't needed these functions straight, but the 'libiberty.a' will be used for every GCC, binutils, GDB etc., built for Mingw-host, so I would expect it work, never any problems... But I wouldn't expect the random and srandom being used in them, and many other uncommon functions neither... Cheers, Kai |