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: [EMAIL PROTECTED] Princeton, NJ 08544-1012 http://www.princeton.edu/~kimai

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to