[R] linking C/C++ external libraries.

From: Jarrod Hadfield <J.Hadfield_at_ed.ac.uk>
Date: Mon, 3 Dec 2007 14:54:29 +0000


Hi Everyone,

I'm trying to load some C++ code using dyn.load but I'm getting unresolved symbols associated with some external libraries (CSparse). I gather this is something to do with linking as the the code compiles fine. However, I've passed

-L/home/jarrod/My_Programs/SuiteSparse/CSparse/Lib -lcsparse

to the complier (g++), either directly using R CMD SHLIB or as PKG_LIBS in a Makevars file, and I cannot resolve the problem. I'm working with R 2.6.0 on fedora 6

Any help would be appreciated.

Thanks,

Jarrod



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 03 Dec 2007 - 14:39:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Dec 2007 - 17:30:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.