[Insight-users] random number generator on OSX
Kevin H. Hobbs
kevin.hobbs.1 at ohiou.edu
Wed Aug 10 08:42:15 EDT 2005
On Tue, 2005-08-09 at 15:55 -0600, Suyash P. Awate wrote:
> Hello ITK-users,
>
> While working with ITK on the MacOSX 10.4, I tried to use the random
> number generator "random_r()" using gcc 4.0 but I was unable to compile
> the code. I was able to use this function just fine on linux (fedora
> core 2) using gcc 3.3.
>
> Has anyone tried something like this before ? I would appreciate any
> help. Thanks.
>
> Regards,
> Suyash.
It sounds like it's a gnu extension. Have you tried:
#define _GNU_SOURCE
#include <stdlib.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050810/30d48e73/attachment.pgp
More information about the Insight-users
mailing list