jrpc icon indicating copy to clipboard operation
jrpc copied to clipboard

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

Open zhiiw opened this issue 2 years ago • 1 comments

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

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

  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))
    {}

zhiiw avatar Aug 12 '22 08:08 zhiiw

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

sirius-fan avatar Sep 29 '22 05:09 sirius-fan