【发布时间】:2017-03-27 20:33:54
【问题描述】:
我刚刚开始使用 Cython,正在尝试编译“Hello World”脚本。我正在尝试使用gcc -Os /User/Documents/Python/Test\ Python/helloCopy.c -I/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -l,但我不知道在-l 之后添加什么。其他论坛页面说“在链接器命令行中包含 -lpython2.7(或您正在使用的任何 Python 版本)”,但这会产生 ld: library not found for -lpython3.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我应该将-l 指向特定文件夹吗?
【问题讨论】:
标签: python c compilation cython