当前位置:网站首页>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
边栏推荐
猜你喜欢
Jetson AGX Orin 平台关于c240000 I2C总线和GMSL ses地址冲突问题
MySQL 8.0.29 设置和修改默认密码
不用bs4的原因居然是名字太长?爬取彩票开奖信息
Uni-app 小程序 App 的广告变现之路:激励视频广告
MySQL 5.7 detailed download, installation and configuration tutorial
MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)
About the data synchronization delay of MySQL master-slave replication
openim支持十万超级大群
Navicat new database
基于ABP实现DDD--仓储实践
随机推荐
基于ABP实现DDD--实体创建和更新
手动从0搭建ABP框架-ABP官方完整解决方案和手动搭建简化解决方案实践
力扣题(3)—— 无重复字符的最长子串
ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program
PhpMetrics 使用
proxy反向代理
代码越写越乱?那是因为你没用责任链
系统结构考点之并行计算霍纳法则
JUC原子类详解
The reason for not using bs4 is that the name is too long?Crawl lottery lottery information
大家都在用的plm项目管理软件有哪些
MySQL 灵魂 16 问,你能撑到第几问?
c语言进阶篇:指针(五)
MySQL分页查询的5种方法
MySQL 有这一篇就够(呕心狂敲37k字,只为博君一点赞!!!)
【菜鸡含泪总结】如何用pip、anaconda安装库
DistSQL 深度解析:打造动态化的分布式数据库
cnpm安装步骤
Google Earth Engine ——快速实现MODIS影像NDVI动画的在线加载并导出
go语言慢速入门——流程控制语句