1

メモリビュー変数の初期化中にエラーが発生しました。これは私のコードです:

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

そして、これは私が得ているエラーです:

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

Red Hat Linux で Python 2.6.6、GCC 4.4.7、Cython 0.14.1 を実行しています。

4

0 に答える 0