Menu

#15 Compile Error on MacOSX (wipe-2.2.0)

open
nobody
None
5
2009-02-23
2009-02-23
katzlbt
No

It appears that HAVE_STDINT_H is not defined when compiling this file ...

Start the file with:
#include "config.h"

And everything works and the project compiles nicely.

make clean followed by a make does not work.
Maybe it removes too many files?

gcc -pipe -O2 -ffast-math -I. -DDARWIN9 -c -o rand.o rand.c
In file included from rand.c:35:
rand.h:23:1: error: unterminated #else
rand.c: In function ‘prng_seed’:
rand.c:84: error: ‘u_rand_t’ undeclared (first use in this function)
rand.c:84: error: (Each undeclared identifier is reported only once
rand.c:84: error: for each function it appears in.)
rand.c:84: error: syntax error before ‘seed’
rand.c:86: error: ‘seed’ undeclared (first use in this function)
rand.c: At top level:
rand.c:97: error: syntax error before ‘prng_get_rand’
rand.c:107: error: syntax error before ‘u_rand_t’
rand.c: In function ‘prng_fillbuf’:
rand.c:111: error: ‘u_rand_t’ undeclared (first use in this function)
rand.c:111: error: syntax error before ‘rand’
rand.c:114: error: ‘size’ undeclared (first use in this function)
rand.c:118: error: ‘buf’ undeclared (first use in this function)
rand.c:130: error: invalid lvalue in assignment
make: *** [rand.o] Error 1

Discussion


Log in to post a comment.

MongoDB Logo MongoDB