Compiling pymat: invalid conversion from `const maybelong*' to `int*'

Roy Yves yves.roy at umontreal.ca
Thu Jun 10 19:01:48 CEST 2004


Hi:

I am compiling pymat and I get this error all over the place:

 invalid conversion from `const maybelong*' to `int*' (see below)

Any idea what I should do to solve that ?

Thanks
Roy

make install
g++  -c pymat.C -o pymat.o -I/usr/local/matlab6p5/extern/include -I/usr/include/python2.2/numarray -I/usr/include/python2.2 
pymat.C: In function `mxArray* makeMxFromNumeric(const PyArrayObject*)':
pymat.C:218: invalid conversion from `const maybelong*' to `int*'
pymat.C:218:   initializing argument 5 of `void copyNumeric2Mx(T*, int, int, 
   double*, int*) [with T = char]'
pymat.C:221: duplicate case value
pymat.C:217: previously used here
pymat.C:222: invalid conversion from `const maybelong*' to `int*'
pymat.C:222:   initializing argument 5 of `void copyNumeric2Mx(T*, int, int, 
   double*, int*) [with T = unsigned char]'
pymat.C:226: invalid conversion from `const maybelong*' to `int*'
pymat.C:226:   initializing argument 5 of `void copyNumeric2Mx(T*, int, int, 
   double*, int*) [with T = signed char]'
pymat.C:230: invalid conversion from `const maybelong*' to `int*'
pymat.C:230:   initializing argument 5 of `void copyNumeric2Mx(T*, int, int, 
   double*, int*) [with T = short int]'
pymat.C:234: invalid conversion from `const maybelong*' to `int*'
pymat.C:234:   initializing argument 5 of `void copyNumeric2Mx(T*, int, int, 
   double*, int*) [with T = int]'
pymat.C:237: duplicate case value
pymat.C:233: previously used here
pymat.C:238: invalid conversion from `const maybelong*' to `int*'
pymat.C:238:   initializing argument 5 of `void copyNumeric2Mx(T*, int, int, 
   double*, int*) [with T = long int]'
pymat.C:242: invalid conversion from `const maybelong*' to `int*'
pymat.C:242:   initializing argument 5 of `void copyNumeric2Mx(T*, int, int, 
   double*, int*) [with T = float]'
pymat.C:246: invalid conversion from `const maybelong*' to `int*'
pymat.C:246:   initializing argument 5 of `void copyNumeric2Mx(T*, int, int, 
   double*, int*) [with T = double]'
pymat.C:250: invalid conversion from `const maybelong*' to `int*'
pymat.C:250:   initializing argument 6 of `void copyCplxNumeric2Mx(T*, int, 
   int, double*, double*, int*) [with T = float]'
pymat.C:254: invalid conversion from `const maybelong*' to `int*'
pymat.C:254:   initializing argument 6 of `void copyCplxNumeric2Mx(T*, int, 
   int, double*, double*, int*) [with T = double]'
pymat.C: In function `mxArray* numeric2mx(const PyObject*)':
pymat.C:296: invalid conversion from `const PyObject*' to `PyObject*'
make: *** [pymat.o] Error 1

Compilation exited abnormally with code 2 at Thu Jun 10 12:49:28





More information about the Python-list mailing list