当前位置:网站首页>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 .
边栏推荐
- 联想“双平台”运维解决方案 助力智慧医疗行业智慧管理能力全面提升
- Daily interview 1 question - basic interview question of blue team - emergency response (1) basic idea process of emergency response +windows intrusion screening idea
- How to solve the lock-in read-only alarm of AutoCAD Chinese language?
- MySQL找不到mysql.sock文件的臨時解
- Development and construction of NFT mining tour gamefi chain tour system
- Rust 操控大疆可编程无人机 tello
- 「经验」我对用户增长的理解『新用户篇』
- Partition marble (multiple knapsack + binary optimization)
- Synchronized summary
- Animesr: learnable degradation operator and new real world animation VSR dataset
猜你喜欢

Redis - persistent RDB and persistent AOF

Redis (IV) - delete policy

What did Tongji and Ali study in the CVPR 2022 best student thesis award? This is an interpretation of yizuo

In distributed scenarios, do you know how to generate unique IDs?

Deep understanding of JVM (VI) -- garbage collection (III)

Post penetration file system + uploading and downloading files

Redis (II) -- persistence

后渗透之文件系统+上传下载文件

剑指 Offer 17. 打印从1到最大的n位数

Talk about the SQL server version of DTM sub transaction barrier function
随机推荐
MSF后渗透总结
TeamTalk WinClient编译问题及解决方案
又一篇CVPR 2022论文被指抄袭,平安保险研究者控诉IBM苏黎世团队
New research of HKUST & MsrA: about image to image conversion, finishing is all you need
TCP session hijacking based on hunt1.5
基於SSH的網上商城設計
每日面试1题-蓝队基础面试题-应急响应(1)应急响应基本思路流程+Windows入侵排查思路
Rainbow Brackets 插件的快捷键
Redis (III) - transaction
If you want to learn software testing, you must see series, 2022 software testing engineer's career development
Advanced customization of uni app [day13]
News management system based on SSM
Small Tools(3) 集成Knife4j3.0.3接口文档
Openlayers 卷帘地图
Deep understanding of JVM (IV) - garbage collection (I)
Lenovo's "dual platform" operation and maintenance solution helps to comprehensively improve the intelligent management ability of the intelligent medical industry
Redis (I) - data type
TiDB Dashboard里面可以写sql执行吗
Multipass中文文档-设置图形界面
大佬们目前flinksql, cdcmysql跟Kafka双流join,结果放到mysql 或者ka