yyzybb537 / libgo

Go-style concurrency in C++11
MIT License
3.22k stars 757 forks source link

Apple M2编译成功,但是调用时报错 #291

Open Baiyuetribe opened 1 year ago

Baiyuetribe commented 1 year ago
[build] Undefined symbols for architecture arm64:
[build]   "_libgo_jump_fcontext", referenced from:
[build]       co::libgo_poll(pollfd*, unsigned int, int, bool) in liblibgo.a(hook.cpp.o)
[build]       _select in liblibgo.a(hook.cpp.o)
[build]       _sleep in liblibgo.a(hook.cpp.o)
[build]       _usleep in liblibgo.a(hook.cpp.o)
[build]       _nanosleep in liblibgo.a(hook.cpp.o)
[build]       co::Task::Run() in liblibgo.a(task.cpp.o)
[build]       co::LibgoSwitcher::sleep() in liblibgo.a(task.cpp.o)
[build]       ...
[build]   "_libgo_make_fcontext", referenced from:
[build]       co::Context::Context(void (*)(long), long, unsigned long) in liblibgo.a(task.cpp.o)
paradiseforgithub commented 1 year ago

已收到您的邮件,如有问题会尽快给您回复.