You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "thorneliu (via GitHub)" <gi...@apache.org> on 2024/10/17 06:55:17 UTC
Re: [I] Question:How to use the brpc to build my own apps(如何使用brpc构建自己的程序) (brpc)
thorneliu commented on issue #2764:
URL: https://github.com/apache/brpc/issues/2764#issuecomment-2418693811
```
&& cd ./incubator-brpc \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make -j8 \
&& make install \
```
用这样的编译命令将brpc安装到系统中。头文件中引用 #include <brpc/server.h>
Cmake中需要添加选项链接brpc
```
target_link_libraries(${PROJECT_NAME} brpc ...}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org