Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行示例程序时编译出错,提示platform unsupported #80

Open
gxdran opened this issue Jul 30, 2020 · 2 comments
Open

运行示例程序时编译出错,提示platform unsupported #80

gxdran opened this issue Jul 30, 2020 · 2 comments

Comments

@gxdran
Copy link

gxdran commented Jul 30, 2020

在虚拟机中编译出错,运行环境vm+ubuntu19.10,是因为系统问题吗?

@gxdran
Copy link
Author

gxdran commented Jul 30, 2020

补充:修改“/handy/poller.cc"文件,在#ifdef OS_LINUX 语句前添加#define OS_LINUX 语句后解决

@jovany-wang
Copy link
Collaborator

我推测要么是ubuntu19移除了这个宏或者你的vm环境没有这个宏? 但是ubuntu19移除这个宏可能性不大,也不合理而且我好像没找到移除的部分。 所以可能是你的vm或者环境没有这个宏或者宏叫其他名字?

这里的建议:
方便的话可以看看正常 其他的ubuntu19版本这个宏是否存在。

否则这部分的代码就需要改下了:
https://github.com/yedf/handy/blame/master/handy/poller.cc#L8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants