[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Interfacing Octave to R
From: |
Paul Koufalas |
Subject: |
Interfacing Octave to R |
Date: |
Fri, 27 May 2005 21:39:42 -0500 |
User-agent: |
Mozilla Thunderbird 0.8 (Windows/20040913) |
Hi all,
I've tried to compile the code written and tested by Duncan Temple Lang
and John W Eaton for interfacing Octave to R. They wrote and tested this
several years ago with Octave 2.0.x.
I am using Octave 2.1.64 and R 1.5.1 on a hard disk install of Knoppix
3.6. I don't know R very well at all, and want to tap into it via Octave
if possible.
But the indifferent silicon has defeated me, can anybody offer any
advice? I'm no C/C++ programmer.
I changed Duncan's -DUSE_R to -DUSE_RINTERNALS after searching through
#defines in Rdefines.h and Rinternals.h. Leaving -DUSE_R results in a
similar error, but the macro R_CHAR isn't expanded.
address@hidden:~/ROctave/src# make
(CXX=g++ ; export CXX ; /usr/bin/mkoctfile -o libConverters.so -I.
-I/usr/include/octave-2.1.64 -I/usr/lib/R/include -v -D_R_=1
-DUSE_RINTERNALS=1 -L/usr/lib/R/bin -lR Converters.cc )
g++ -c -fPIC -I/usr/include/octave-2.1.64
-I/usr/include/octave-2.1.64/octave -mieee-fp -O2 -I.
-I/usr/include/octave-2.1.64 -I/usr/lib/R/include -D_R_=1
-DUSE_RINTERNALS=1 Converters.cc -o Converters.o
Converters.cc: In function `octave_value toOctaveValue(SEXPREC*)':
Converters.cc:98: error: no match for 'operator[]' in 'm[((*((names +
(+(i *
4))) + 24)) + 24)]'
make: *** [libConverters.so] Error 1
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Interfacing Octave to R,
Paul Koufalas <=