Re: [Rd] Memory problems with a custom R package

2006-09-12 Thread Hin-Tak Leung
compiler/platform? I did this: R CMD SHLIB helloworld.cpp Then this in R: > dyn.load("helloworld.so") > .Call("helloworld") and it doesn't segfault. (x86_64 linux with 32-bit R). Tom McCallum wrote: > Hi everyone, > > I have been attempting to build a very simple R package interfacing with

Re: [Rd] Memory problems with a custom R package

2006-09-12 Thread Prof Brian Ripley
On Tue, 12 Sep 2006, Tom McCallum wrote: > Hi everyone, > > I have been attempting to build a very simple R package interfacing with > some very simple C++ code. Everything I try though results in the > function working but on return it produces a memory error. Here is the > output: > >

[Rd] Memory problems with a custom R package

2006-09-12 Thread Tom McCallum
Hi everyone, I have been attempting to build a very simple R package interfacing with some very simple C++ code. Everything I try though results in the function working but on return it produces a memory error. Here is the output: ***OUTPUT*** > library(My