Displaying 1 result from an estimated 1 matches for "cc4zxrqh".
2007 Nov 07
1
problem in linking to libR.so with R 2.5.0
...tern "C" {
#include <config.h>
#include <IOStuff.h>
int main(int argc, char** argv)
{
R_IoBufferInit(&R_ConsoleIob);
return 0;
}
}
I built it using:
g++ -o test -I/dir/to/R-2.5.0/src/include -L/dir/to/R-2.5.0/lib/R/lib -lR
test.cpp
and I got the error message:
/tmp/cc4zxrqh.o(.text+0x20): In function `main':
test.cpp: undefined reference to `R_ConsoleIob'
/tmp/cc4zxrqh.o(.text+0x25):test.cpp: undefined reference to `R_IoBufferInit'
collect2: ld returned 1 exit status
I installed R 2.5.0 on Fedora Core 4 with gcc 4.0.2 and configured with
--prefix=/dir/to/...