Open
Conversation
Author
|
遇到新的报错,由于默认的WINDOWS ARM64不支持ASM_MASM(补充:ARM64环境下用ASM_MARMASM)。我修改为ASM后,虽然可以编译出静态库,但是最终在自己的项目里调用co.lib时,仍然会报错 co.lib(io_event.obj) : error LNK2001: 无法解析的外部符号 tb_context_jump [C:\arch\demo\build\demo.vcxproj]
co.lib(co.obj) : error LNK2001: 无法解析的外部符号 tb_context_jump [C:\arch\demo\build\demo.vcxproj]
co.lib(sched.obj) : error LNK2001: 无法解析的外部符号 tb_context_jump [C:\arch\demo\build\demo.vcxproj]
co.lib(hook_win.obj) : error LNK2001: 无法解析的外部符号 tb_context_jump [C:\arch\demo\build\demo.vcxproj]
co.lib(sock_win.obj) : error LNK2001: 无法解析的外部符号 tb_context_jump [C:\arch\demo\build\demo.vcxproj]
co.lib(sched.obj) : error LNK2019: 无法解析的外部符号 tb_context_make,函数 "public: void __cdecl co::xx::Sched::resume(struct co::xx::Coroutine *)" (?resume@Sched@xx@co@@QEAAXPEAUCoroutine@23@@Z)其余平台win x64及mac x64和arm64都正常,就win arm64异常,不知道大佬有没有什么解决思路 @idealvin |
Owner
|
@Baiyuetribe 你如果能写汇编的话,可以试试将 |
Author
|
@idealvin 使用cursor成功编写context_arm64.asm。现在一切运行正常,就是我不懂汇编,大佬评估下该文件是否正确 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix #364