当前位置:网站首页>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 install12345678
Note: 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 install1234567
Under 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
边栏推荐
- 系统结构考点之并行计算霍纳法则
- Detailed explanation of the delete problem of ClickHouse delete data
- 【零代码工具】15 款企业级零代码开发平台推荐,总有一款是你心仪的
- 【Nacos】解决Nacos下载速度缓慢的问题
- cmd(命令行)操作或连接mysql数据库,以及创建数据库与表
- 【导航规划】导航规划背景知识总结
- ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program
- 语言代码表
- 正则表达式语法及使用
- 不用bs4的原因居然是名字太长?爬取彩票开奖信息
猜你喜欢
QT开发简介、命名规范、signal&slot信号槽
MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)
MySQL 游标
MySQL cursors
手动从0搭建ABP框架-ABP官方完整解决方案和手动搭建简化解决方案实践
About the data synchronization delay of MySQL master-slave replication
Uni-app 小程序 App 的广告变现之路:激励视频广告
IDEA使用技巧
MySQL 5.7详细下载安装配置教程
ClickHouse to create a database to create a table view dictionary SQL
随机推荐
【问题】Mysql Waiting for table metadata lock 解决方案 修改lock_wait_timeout时间
MySQL compressed package installation, fool teaching
The Road to Ad Monetization for Uni-app Mini Program Apps: Rewarded Video Ads
【无标题】
VS2017编译Tars测试工程
Navigation Bar----Personal Center Dropdown
3分钟带你了解微信小程序开发
连号区间数
ValueError: Append mode is not supported with xlsxwriter解决方案
MySQL Soul 16 Questions, How Many Questions Can You Last?
navicat新建数据库
Be careful with your dictionaries and boilerplate code
1064 Complete Binary Search Tree
A simple rich text editor
The most complete Redis basic + advanced project combat summary notes in history
【科研】文献下载神器方式汇总
基于ABP实现DDD--领域服务、应用服务和DTO实践
Chrome 配置samesite=none方式
MYSQL JDBC Book Management System
navicat无法连接mysql超详细处理方法