1

Error initializing memoryview variable. This is my code:

cdef int *popref = <int*>malloc(popsize * sizeof(int))
cdef int [:] popref_mv = popref

And this is the error I am getting:

Error: cdef int [:] popref_mv = popref
         ^
   Expected an identifier or literal

Running Python 2.6.6, GCC 4.4.7, Cython 0.14.1 on Red Hat Linux.

m00am
  • 5,910
  • 11
  • 53
  • 69
zenith86
  • 11
  • 2

0 Answers0