当前位置:网站首页>VS2017 compile Tars test project
VS2017 compile Tars test project
2022-07-30 22:07:00 【Hello, C++!】
1. Download and compile TarsCpp in Windows environment
git clone https://github.com/TarsCloud/TarsCpp.git --recursivecd TarsCpp;mkdir build;cd build;cmake .. -G "Visual Studio 15 2017"cmake --build . --config release#installcmake --build . --config release --target install12345678Note: If you need to install the debug library, change the command to the following:
cd TarsCpp;mkdir build;cd build;cmake .. -G "Visual Studio 15 2017"cmake --build . --config debug#installcmake --build . --config debug --target install1234567Under normal circumstances, the compilation can be normal.If there are various problems with the installation, you can try reinstalling the system and VS2017...
After the compilation and installation is completed, the Tars library and header files will be generated under the C drive by default.
2. Develop TarsCpp test project
New VS2017 project
Put TarsCpp example insideCopy the AuthClient and AuthServer source files to the corresponding test project, then use tars2cpp.exe to generate Hello.h, and then add the files to the project.Then add the include and lib in the C:\tars\cpp directory to the project configuration respectively.
3. Modify the configuration file
Modify the config.conf files of AuthServer and AuthClient and change the IP.
4 Run Test Project
Run AuthServer
Run AuthClient
边栏推荐
- Py之pdpbox:pdpbox的简介、安装、案例应用之详细攻略
- 2022/07/30 学习笔记 (day20) 面试题积累
- Uni-app 小程序 App 的广告变现之路:激励视频广告
- 解决npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead
- d违反常了吗
- ML之shap:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用RF随机森林+计算SHAP值单样本力图/依赖关系贡献图可视化实现可解释性之攻略
- 【高等数学】矩阵与向量组的秩和等价
- 系统结构考点之PM2I单级网络
- DistSQL 深度解析:打造动态化的分布式数据库
- Learning about XML (1)
猜你喜欢
随机推荐
系统结构考点之PM2I单级网络
IDEA2021.2安装与配置(持续更新)
The Road to Ad Monetization for Uni-app Mini Program Apps: Rewarded Video Ads
qt使用动态库(DLL)
WSL2设置默认启动用户(debian)
for...in 和 for...of 的区别
小心你的字典和样板代码
matlab标量场作图
DistSQL in-depth analysis: creating a dynamic distributed database
Knowledge of C language corners of byte alignment
ThinkPHP高仿蓝奏云网盘系统源码/对接易支付系统程序
【Network Security Column Directory】--Penguin Column Navigation
TransGAN code reproduction - Jiutian Bisheng Platform
基于ABP实现DDD--领域逻辑和应用逻辑
MySQL 游标
连号区间数
基于ABP实现DDD--实体创建和更新
cookie和session区别
基于 Docker Compose 的 Nacos(MySQL 持久化)的搭建
2022.7.28








