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

在2022 年如何成功跑起来这个项目 #6

Open
zhiiw opened this issue Aug 12, 2022 · 1 comment
Open

在2022 年如何成功跑起来这个项目 #6

zhiiw opened this issue Aug 12, 2022 · 1 comment

Comments

@zhiiw
Copy link

zhiiw commented Aug 12, 2022

首先作者很牛逼,表达一下对作者的崇拜。

接下来
我在三个地方发生了报错 分别的解决办法如下。

  1. getpid() 函数会报错,原因未知。
    解决办法 :删除函数 并加上
#define gettid() static_cast<pid_t>(syscall(SYS_gettid))
  1. jackson 里面的 REader.h 加上
#include <stdexcept>
  1. RPCErr.h 那里的 36 行 修改为 具体是因为 传参与已有变量重名
    explicit RpcError(int32_t error):
            err_(fromErrorCode(error))
    {}
@sirius-fan
Copy link

getpid() 和gcc bits里一个函数重名,改个名就好了

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