Re: [R-pkg-devel] Linking to C library from within R package - library not loaded error

2016-07-06 Thread Satyaprakash Nayak
A quick update The correct command to run the sundials example is gcc -Wall cvRoberts_dns.c -o cvRoberts_dns.exe -I/usr/local/include -L/usr/local/lib/ -lsundials_cvode -lsundials_nvecserial -lm OR gcc -Wall cvRoberts_dns.c -o cvRoberts_dns.exe /usr/local/lib/libsundials_cvode.a /usr/local/lib/

[R-pkg-devel] Linking to C library from within R package - library not loaded error

2016-07-06 Thread Satyaprakash Nayak
Hi I am trying to develop a package which links against a C library which is installed on my system (Mac OSX) in the /usr/local/lib directory. The C library against which I am linking is called 'Sundials