[Rd] c++ code on amd64

2006-04-16 Thread Kasper Daniel Hansen
Hi Brief synopsis: I am having a rather peculiar problem regarding a C++ library. It seems that functions from this library behave differently when compiled using R as opposed to being compiled directly from the command line. The problem is only seen on the amd64 platform (using gcc 4.0.2

Re: [Rd] Crash in de()

2006-04-16 Thread Peter Dalgaard
Juan Santiago Ramseyer <[EMAIL PROTECTED]> writes: > SYSTEM: > -- > CPU: AMD64 > MOTHERBOARD: ASUS > OS: FEDORA CORE 5 i64_86 > > R SESSION: > -- > > teste<-list(a=c(1,2,3,4),b=c(2,4,6,8)) > > teste > $a > [1] 1 2 3 4 > > $b > [1] 2 4 6 8 > > > de(teste) > *** buf

Re: [Rd] c++ code on amd64

2006-04-16 Thread Prof Brian Ripley
You mention 'float' repeatedly. A %f argument in Rprintf (and printf) refers to a _double_. Given how little you have shown us it has to be entirely guesswork, but is cel.GetIntensity(1) perhaps a float? If so what happens is I believe undefined and compiler-specific. (Normally headers forc

Re: [Rd] c++ code on amd64

2006-04-16 Thread Kasper Daniel Hansen
Prof Ripley (and others): Thank you very much for the idea of the casting problems inside Rprintf. Unfortunately that did not work. I have now trimmed everything to a simple example, see below. The cel methods are indeed defined as floats respectively integers like class FusionCELData { p

[Rd] Stack checking, core dumps, and embedding R

2006-04-16 Thread Thomas Friedrichsmeier
Dear R developers, it seems the stack checking issue with embedded applications is not fully resolved, yet. The problem arises, when multiple threads are involved. I.e. the case, where R is run in a separate thread of the main application. In this case, the call to (unix/system.c) R_CStack