Build Python (2.7) module on GCC 4.8 fails

后端 未结 1 1128
傲寒
傲寒 2021-01-29 11:41

I\'m trying to build a Python Module/extension write using C API, but it fails:

% python2 cmath.py build
running build
running build_ext
building \'c_math\' exte         


        
相关标签:
1条回答
  • 2021-01-29 12:15
      static PyMethodDef c_mathMethods[] = {
          {"more", c_math_more, METH_VARARGS, "n + nn Using C API"},
          {NULL, NULL, 0, NULL}
    - }
    + };
    

    You are missing a semicolon at the end...

    0 讨论(0)
提交回复
热议问题