[R] MatClass

Yvonnick NOEL noel at univ-lille3.fr
Tue Mar 12 15:30:40 CET 2002


Hello,

I have written a small set of R functions for doing Generative Topographic 
Mapping and variants, and would like to write part of the code in C++ using 
the MatClass Matrix Library ( http://les.man.ac.uk/ses/staff/crb/matclass/ ).

Now, my problem is even before writing the code itself, to compile the 
MatClass library. Everything is OK under Windows but when trying to port the 
program to Linux (Mandrake 8.1), I failed to compile the library, even when 
the makefile provided. The error message reeads :

$ make -f libmat.mak
g++ -c -O -Wall matinit.cc
In file included from matinit.cc:16:
matrix.hpp:884: declaration does not declare anything
matrix.hpp:884: parse error before `and'
matrix.hpp:885: declaration does not declare anything
matrix.hpp:886: class `matrix' is implicitly friends with itself
matrix.hpp:886: parse error before `not'
make: *** [matinit.o] Error 1

As far as I can say, nothing in the C++ code seems to be wrong (and compiled 
fine with Visual C++ under Windows). I am aware this is not directly 
related to R but just in case someone among R users would already have tried 
MatClass and experienced a similar problem, or would like to try it, I'd be 
happy to receive comments and suggestions.

Thanks in advance for your time,

Yvonnick Noel, PhD.
U. of Lille 3
FRANCE
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list