search for: ccmicw

Displaying 1 result from an estimated 1 matches for "ccmicw".

Did you mean: ccic
2004 Jun 22
1
R mathlib
...nd static libraries which can be called from standalone C or C++ code. Well, I use runif() function in test_runif.c: #include <Rmath.h> main() { // ... printf("%f\n", runif(0, 1)); } and compile it: $ gcc -I/usr/lib/R/include -lRmath -lm -o test_runif test_runif.c /tmp/ccmICWeD.o(.text+0x2d): In function `main': : undefined reference to `Rf_runif' collect2: ld returned 1 exit status Replacing `-lm' with `-lR' solves the problem. So, I need libR.so anyway? Thanks. -- WBR, Timur