Displaying 1 result from an estimated 1 matches for "r_dot_method".
2024 Feb 20
1
Compiling libR as a standalone C library for java+jni (-fPIC)
...d into java.
```
gcc? -ITMP -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux \
??? -LTMP/R-4.3.2/lib `TMP/R-4.3.2/bin/R CMD config --cppflags` -shared -fPIC -o TMP/libRSession.so? -g RSession.c TMP/R-4.3.2/lib/libR.a
/usr/bin/ld: TMP/R-4.3.2/lib/libR.a(objects.o): warning: relocation against `R_dot_Method' in read-only section `.text'
/usr/bin/ld: TMP/R-4.3.2/lib/libR.a(altrep.o): relocation R_X86_64_PC32 against symbol `R_NilValue' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
```
Any idea ? Thanks
Pierre