Mac上的gcc`python3-config --ldflags`链接错误

时间:2018-12-28 13:08:49

标签: python gcc

我正在Mac上构建Blender。我将pyenv用于我的python环境。因此,我更改了“ platform_apple.cmake”的_py_framework和

设置(PLATFORM_LINKFLAGS“ $ {PLATFORM_LINKFLAGS} python3-config --ldflags”)

但由于

而失败

ld:架构x86_64找不到符号

所以我尝试在控制台中使用

gcc-4.9`python3-config --ldflags`

ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking. Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status

那么我的gcc怎么了?

0 个答案:

没有答案