Re: [Rd] Problem with compiling shared C/C++ library for loading into R (Linux)

2009-01-14 Thread Samsiddhi Bhattacharjee
suggested in a previous post using -lstdc++ with gcc also works. --Samsiddhi Bhattacharjee On Sun, Jan 11, 2009 at 7:58 AM, torpedo fisken wrote: > I think you're not linking it together when you call R CMD SHLIB, use > something like > > R CMD SHLIB mylib.c yourlib1.o yourlib2

[Rd] Problem with compiling shared C/C++ library for loading into R (Linux)

2009-01-10 Thread Samsiddhi Bhattacharjee
b.so)" from R, I got the error: -- Error in dyn.load("mylib.so") : unable to load shared library '/somepath/mylib.so': /somepath/mylib.so: undefined symbol: _ZSt4cerr - I will really appreciate any help or advice on this problem. --Samsiddhi Bhattacharjee _