当前位置:网站首页>Compilation problems and solutions of teamtalk winclient
Compilation problems and solutions of teamtalk winclient
2022-06-30 18:28:00 【Hello,C++!】
VS2017 Compile successfully TeamTalk Source code address :
TeamTalk WinClient Compilation problems and solutions
- One 、 is deprecated and will be REMOVED.
- Two 、error C2440: “ initialization ”: from “int” Convert to “mbstate_t”
- 3、 ... and 、 Can't open file “mfcs120ud.lib”
- Four 、error LNK2038: detected “_MSC_VER” Mismatches for : value “1800” Mismatch value “1900”(IM.BaseDefine.pb.obj in )
One 、<hash_map> is deprecated and will be REMOVED.
Enter the win-client\solution Catalog , open .sln Solution , Upgrade to vs2017 project , Perform the first compilation , Note the following error :
fatal error C1189: #error: <hash_map> is deprecated and will be REMOVED.
Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
resolvent :
Search the source code for :#include <hash_map>, Then insert the following line before it
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS 1
Two 、error C2440: “ initialization ”: from “int” Convert to “mbstate_t”
mbstate_t in_state = 0;
Change to the following code :
mbstate_t in_state = {0};
3、 ... and 、 Can't open file “mfcs120ud.lib”
The error message is as follows :
1> The build project is complete “GifSmiley2003.vcxproj” The operation of .
2>LINK : fatal error LNK1104: Can't open file “mfcs120ud.lib”
Modify the project separately utility、Modules Properties of
Properties->Linker->Input->Additional Dependencies
take mfcs120ud.lib It is amended as follows mfcs140ud.lib Or the corresponding version on your computer
Four 、error LNK2038: detected “_MSC_VER” Mismatches for : value “1800” Mismatch value “1900”(IM.BaseDefine.pb.obj in )
- decompression win-client\3rdParty In the catalog protobuf-2.6.1 Compressed package , open protobuf-2.6.1/vsprojects/protobuf.sln
To regenerate the libprotobuf and libprotobuf-lite Two projects , After the compilation, the protobuf In the catalog Debug Two... Will be generated in the directory lib library , Copy it to win-client/lib/Debug Under the table of contents - In the command line cd To teamtalk/server/src/libsecurity/win/ Run in directory build.bat Batch file
Will prompt “else Not an internal or external command , Nor are they runnable programs or batch files .” At this time, modify the batch file else Follow to the closing parenthesis ), As shown below :
set "command=%1"
if "%command%" == "clean" (
echo "clean all build..."
rm -rf CMakeFiles
rm -rf Makefile
rm -rf CMakeCache.txt
rm -rf cmake_install.cmake
rm -rf libsecurity.a
)else ( cmake ../src )
Re execution build.bat You can compile security.sln And other relevant engineering documents
- error C2371: “int8_t”: redefinition ; Different base types
Simply comment out the corresponding definitions
//typedef char int8_t;
Compile again , After passing, the lib Library copy to win-client/lib/Debug Catalog .
边栏推荐
- DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital
- Customer relationship CRM management system based on SSH
- 基于SSH的客户关系CRM管理系统
- Apache 解析漏洞(CVE-2017-15715)_漏洞复现
- ASP. Net password encryption and password login
- Redis (III) - transaction
- 每日面试1题-如何防止CDN防护被绕过
- Animesr: learnable degradation operator and new real world animation VSR dataset
- Optimization of interface display for general kernel upgrade of mobo video management system v3.5.0
- 「经验」我对用户增长的理解『新用户篇』
猜你喜欢

清华只能排第3?2022软科中国大学AI专业排名发布

Redis (III) - transaction

Small Tools(3) 集成Knife4j3.0.3接口文档

DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital

Redis (IV) - delete policy

Customer relationship CRM management system based on SSH

Conception d'un centre commercial en ligne basé sur SSH

火山引擎入选国内首个《边缘计算产业全景图》

分布式场景下,你知道有几种生成唯一ID的方式嘛?

后渗透之文件系统+上传下载文件
随机推荐
Ardunio esp32 obtains real-time temperature and humidity in mqtt protocol (DH11)
Distributed machine learning: model average Ma and elastic average easgd (pyspark)
100 examples of bug records of unity development (the first example) -- shader failure or bug after packaging
剑指 Offer 16. 数值的整数次方
Dropout: immediate deactivation
Another CVPR 2022 paper was accused of plagiarism, and Ping An insurance researchers sued IBM Zurich team
[machine learning] K-means clustering analysis
Openlayers 卷帘地图
Switching routing (VLAN) experiment
The company was jailed for nonstandard bug during the test ~ [cartoon version]
Talk about the SQL server version of DTM sub transaction barrier function
Elastic 8.0: opening a new era of speed, scale, relevance and simplicity
Unity开发bug记录100例子(第1例)——打包后shader失效或者bug
MSF后渗透总结
「杂谈」对数据分析未来的几点思考
Do you write API documents or code first?
Techo Youth2022学年高校公开课:直播连麦的背后,探索音视频技术如何应用
Only black-and-white box test is required for test opening post? No, but also learn performance test
[PROJECT] Xiaomao school (IX)
每日面试1题-如何防止CDN防护被绕过