当前位置:网站首页>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
边栏推荐
- 系统结构考点之并行计算霍纳法则
- Rust编译报错:error: linker `cc` not found
- @RequestBody、 @RequestParam 、 @PathVariable 和 @Vaild 注解
- Navicat cannot connect to mysql super detailed processing method
- 通过社交媒体建立个人IP的 5 种行之有效的策略
- 【问题】Mysql Waiting for table metadata lock 解决方案 修改lock_wait_timeout时间
- CISP-PTE Zhenti Demonstration
- cmd (command line) to operate or connect to the mysql database, and to create databases and tables
- MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)
- Collapse legacy apps
猜你喜欢

基于ABP实现DDD--领域逻辑和应用逻辑

TransGAN code reproduction - Jiutian Bisheng Platform

About the data synchronization delay of MySQL master-slave replication

MySQL 8.0.29 设置和修改默认密码

482-静态库、动态库的制作、使用及区别

Gxlcms有声小说系统/小说听书系统源码

ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program

WSL安装图形界面并通过xrdp/X-Launch访问

@RequestBody、 @RequestParam 、 @PathVariable 和 @Vaild 注解

网安学习-内网渗透3
随机推荐
IDEA使用技巧
基于ABP实现DDD--领域逻辑和应用逻辑
ValueError: Append mode is not supported with xlsxwriter解决方案
Gxlcms有声小说系统/小说听书系统源码
基于 Docker Compose 的 Nacos(MySQL 持久化)的搭建
力扣题(2)—— 两数相加
Google Earth Engine ——ee.List.sequence函数的使用
Navigation Bar----Personal Center Dropdown
【微信小程序】小程序突破小程序二维码数量限制
关于XML的学习(一)
连号区间数
Ningbo Zhongning Pawn will transfer 29.5% of the equity for 2.8338 million yuan, and the owner's equity in 2021 will be 9.6875 million yuan
鳄梨价格数据集(Avocado Prices)
宁波中宁典当转让29.5%股权为283.38万元,2021年所有者权益为968.75万元
language code table
史上最全的Redis基础+进阶项目实战总结笔记
The Road to Ad Monetization for Uni-app Mini Program Apps: Rewarded Video Ads
Navicat连接MySQL时弹出:1045:Access denied for user ‘root’@’localhost’
登堂入室之soc开发makefile
ClickHouse删除数据之delete问题详解