|
| From: | Ivan Raikov |
| Subject: | Re: [Chicken-users] srfi-27 - producing pseudo and truly random numbers over a uniform distribution |
| Date: | Mon, 29 Oct 2007 16:17:31 +0900 |
| User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
What platform is this on? Instead of commenting out the typedefs,
could you please rename all the type definitions in randmtzig.c and
random-mtzig.scm as follows:
Original:
typedef signed char int8_t;
...
Modified:
typedef signed char randmtzig_int8_t;
...
This should avoid all collisions with definitions in stdint.h. Let me
know if this works for you.
-Ivan
"Terrence Brannon" <address@hidden> writes:
> Ok, I'm getting build problems between data definitions in stdint.h
> and some of the source code in random-mtzig
>
> Here was the first error I got:
>
> downloading random-mtzig.egg from
> (www.call-with-current-continuation.org eggs 80) .
> gunzip -c ../random-mtzig.egg | tar xf -
> /usr/local/bin/csc -feature compiling-extension -O -d2 -X easyffi -s
> -o random-mtzig.so -check-imports -emit-exports random-mtzig.exports
> random-mtzig.scm randmtzig.c -lchicken -ldl -lm
> randmtzig.c:1: warning: -fPIC ignored for target (all code is position
> independent)
> randmtzig.c:144: error: conflicting types for 'int32_t'
> /usr/include/stdint.h:20: error: previous declaration of 'int32_t' was here
> randmtzig.c:145: error: conflicting types for 'uint32_t'
> /usr/include/stdint.h:28: error: previous declaration of 'uint32_t' was here
>
> <contents of stdint.h>
> <LINE 20>typedef long int32_t;</LINE>
> <LINE 28>typedef unsigned long uint32_t;</LINE>
> </contents>
| [Prev in Thread] | Current Thread | [Next in Thread] |