当前位置:网站首页>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 .
边栏推荐
- 云安全日报220630:IBM数据保护平台发现执行任意代码漏洞,需要尽快升级
- Force deduction solution summary 1175- prime number arrangement
- Inventory in the first half of 2022: summary of major updates and technical points of 20+ mainstream databases
- Customer relationship CRM management system based on SSH
- ABAP-发布Restful服务
- Optimization of interface display for general kernel upgrade of mobo video management system v3.5.0
- 火山引擎入选国内首个《边缘计算产业全景图》
- Redis (VI) - master-slave replication
- 抖音最新Xbogus,signature生成js逆向分析
- Deep understanding of JVM (III) - memory structure (III)
猜你喜欢

基于SSH的通讯网络电子计费系统

Apache parsing vulnerability (cve-2017-15715)_ Vulnerability recurrence

基於SSH的網上商城設計

Redis (VII) - sentry

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

ABAP-发布Restful服务

漏洞复现----35、uWSGI PHP 目录遍历漏洞 (CVE-2018-7490)

助力极致体验,火山引擎边缘计算最佳实践

Solve the problem of unable to connect to command metric stream and related problems in the hystrix dashboard

Design of online shopping mall based on SSH
随机推荐
Redis (IV) - delete policy
Optimize with netcorebeauty Net core independent deployment directory structure
Apache parsing vulnerability (cve-2017-15715)_ Vulnerability recurrence
Deep understanding of JVM (VI) -- garbage collection (III)
The secondary menu of the magic article system v5.4.0 supports the optimization of form display
ASP. Net generate verification code
Ardunio esp32 obtains real-time temperature and humidity in mqtt protocol (DH11)
漏洞复现----37、Apache Unomi 远程代码执行漏洞 (CVE-2020-13942)
AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
Redis (IX) - enterprise level solution (II)
Rhai 脚本引擎的简单应用示例
[software testing] basic knowledge of software testing you need to know
Post penetration file system + uploading and downloading files
If you want to learn software testing, you must see series, 2022 software testing engineer's career development
Simulation of campus network design based on ENSP
分布式场景下,你知道有几种生成唯一ID的方式嘛?
国内离线安装 Chrome 扩展程序的方法总结
Php8.0 environment detailed installation tutorial
[machine learning] K-means clustering analysis
MySQL cannot find mysql Temporary solution of sock file