【记录一个问题】云风的协程库 c conroutine无法在android下链接通过

链接出现以下错误:

coroutine.c:139: undefined reference to `getcontext'
coroutine.c:146: undefined reference to `makecontext'
coroutine.c:163: undefined reference to `swapcontext'

搜索了android-ndk-r14b/platforms/android-24/arch-arm64/usr/lib下的所有.a文件中的符号,没有找到:
nm -A *.a | grep "context"

网上没有搜索到相关文章,部分编译openssl中的文章提到, ucontext库是废弃的API,只能自己用汇编去实现了。

难过!

原文地址:https://www.cnblogs.com/ahfuzhang/p/11278938.html