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

Discussion in 'Python' started by Roy Yves, Jun 10, 2004.

  1. Roy Yves

    Roy Yves Guest

    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
     
    Roy Yves, Jun 10, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Timo Freiberger
    Replies:
    3
    Views:
    998
    Bob Hairgrove
    Oct 30, 2004
  2. Replies:
    11
    Views:
    1,153
  3. Javier
    Replies:
    2
    Views:
    628
    James Kanze
    Sep 4, 2007
  4. powerhouse04
    Replies:
    1
    Views:
    327
    powerhouse04
    Dec 16, 2007
  5. 0m
    Replies:
    26
    Views:
    1,174
    Tim Rentsch
    Nov 10, 2008
Loading...

Share This Page