cc1plus: warning: command line option “-Wstrict-prototypes” is valid for Ada/C/ObjC but not for C++

后端 未结 7 779
日久生厌
日久生厌 2020-12-13 12:40

I am building a C++ extension for use in Python. I am seeing this warning being generated during the compilation process - when a type:

python setup.py build         


        
相关标签:
7条回答
  • 2020-12-13 13:30

    More specifically, distutils uses the same options that python was built with, you can add options using extra_compile_args in creating the distutils.core.Extension but there does not appear to be a way to remove existing arguments in gcc or distutils.

    See http://bugs.python.org/issue9031 for details, it has been closed as a duplicate of http://bugs.python.org/issue1222585, but 9031 details this aspect of the problem

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