link a shared library of a r-package
Dear list I wrote some c-code and would like to link it with the shared library RandomFields.so of the RandomFields package. I tried it in the following way gcc -lRandomFields -L/directory of RandomFields.so -o prog my_c_code.c and I got the following error ld: library not found for -lRandomFields collect2: ld returned 1 exit status Thus my question: Is it possible to link a shared library (created inside an R-package) with so c-code. I am not sure if this is the right list but I am working with Mac OS X 10.6. Regards Christoph