Compiling and linking C extension for Python in Xcode for Mac

后端 未结 2 768
悲哀的现实
悲哀的现实 2021-01-13 12:57

I am trying to compile a simple C extension in Mac to use with Python, and all works well in the command line. Code and gcc command that works are presented below. Now

2条回答
  •  情深已故
    2021-01-13 13:48

    This guy seems to be having the same problem.

    I've figured out the problem. Even though I changed the setting in xcode to specify output type "dynamic library" or "bundle", xcode was ignoring the setting. Starting a new BSD dynamic library project solved the issues I was seeing. Thanks for the help!

提交回复
热议问题