go-python / go-python/gopy

unresolved external symbol PyExc_RuntimeError

未关闭
#267 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
2.3k
派生
136
平均合并
14 分钟
30 天内合并 PR
2

描述

Below is the cause of the unresolved symbol. I tried inserting `__declspec(dllimport)` but clang complains that the assignment to `_cgohack_PyExc_RuntimeError ` is not a constant expression. It seemed to build and link without a problem if I commented the two lines out. I don't understand what the intent is here.
```c
extern char PyExc_RuntimeError[];
void *_cgohack_PyExc_RuntimeError = PyExc_RuntimeError;
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

未指定文件、测试或入口点。首先追踪所示 C 声明的生成位置以及 CPython 扩展的链接方式,然后在受影响的 toolchain 上复现未解析的 PyExc_RuntimeError 符号。完成标准是:不注释掉这些行即可构建并链接该扩展,并且由适当的 build 或 link check 覆盖该行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
c, go, python
领域
build-system
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。