[R] R_qsort_int_I() error

Kosuke Imai kimai at princeton.edu
Fri Mar 19 23:29:36 CET 2004


Hi,
   I want to use R_qsort_int_I() in my C function, but getting the 
following error. It looks like there is a conflict between Rmath.h, 
which I use to generate random numbers, and R_ext/Boolean.h I would 
appreciate any help to fix this problem.

gcc -ansi -g -o Gibbs gibbs.c subroutines.o rand.o vector.o -lm -lRmath 
-llapack -lblas -lfrtbegin -lg2c -lm -shared-libgcc
In file included from /usr/include/R_ext/Utils.h:27,
                  from gibbs.c:7:
/usr/include/R_ext/Boolean.h:29: conflicting types for `FALSE'
/usr/include/Rmath.h:175: previous declaration of `FALSE'
/usr/include/R_ext/Boolean.h:29: conflicting types for `TRUE'
/usr/include/Rmath.h:175: previous declaration of `TRUE'
/usr/include/R_ext/Boolean.h:29: confused by earlier errors, bailing out
make: *** [Gibbs] Error 1

Thanks,
Kosuke


---------------------------------------------------------
Kosuke Imai               Office: Corwin Hall 041
Assistant Professor       Phone: 609-258-6601 (Direct)
Department of Politics    Fax: 609-258-1110 (Department)
Princeton University      Email: kimai at Princeton.Edu
Princeton, NJ 08544-1012  http://www.princeton.edu/~kimai




More information about the R-help mailing list