gcc`python3config ldflags` m上的链接错误

2024-09-28 21:57:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我在我的mac电脑上做搅拌机。我在python环境中使用了pyenv。所以我改变了“平台”的框架_苹果.cmake“还有

设置(PLATFORM\u LINKFLAGS“${PLATFORM\u LINKFLAGS}python3-config --ldflags”)

但是失败了

ld:找不到架构x86\u 64的符号

所以我试着用

gcc-4.9 `python3配置--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怎么了?你知道吗


Tags: forlibraryframeworksystemx86python3filegcc