当前位置:网站首页>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 .
边栏推荐
- autocad中文语言锁定只读警报怎么解决?
- 「经验」浅谈聚类分析在工作中的应用
- Talk about the SQL server version of DTM sub transaction barrier function
- 基于SSH的通讯网络电子计费系统
- [cloud resident co creation] Huawei iconnect enables IOT terminals to connect at one touch
- Redis (VII) - sentry
- Grep output with multiple colors- Grep output with multiple Colors?
- What should I pay attention to when playing futures? Where is safe to open an account? It's my first contact
- VS code 树视图 treeView
- Flink系列:checkpoint调优
猜你喜欢

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

Deep understanding of JVM (IV) - garbage collection (I)

Multipass中文文档-设置图形界面

Only black-and-white box test is required for test opening post? No, but also learn performance test

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

Switching routing (VLAN) experiment

Redis (VIII) - enterprise level solution (I)

Simulation of campus network design based on ENSP

TCP session hijacking based on hunt1.5

Shortcut keys for the rainbow brackets plug-in
随机推荐
Do you write API documents or code first?
Lenovo's "dual platform" operation and maintenance solution helps to comprehensively improve the intelligent management ability of the intelligent medical industry
程序员女友给我做了一个疲劳驾驶检测
Redis (VI) - master-slave replication
Redis (IV) - delete policy
Rhai 脚本引擎的简单应用示例
How to solve the lock-in read-only alarm of AutoCAD Chinese language?
DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital
It's not easy to say I love you | use the minimum web API to upload files
Importing alicloud ECS locally to solve deployment problems
腾讯持久化框架MMKV原理探究
ABAP publish restful service
Redis (IX) - enterprise level solution (II)
Rust 书籍资料 - 芽之家书馆
基于SSH的网上商城设计
Research on the principle of Tencent persistence framework mmkv
后渗透之文件系统+上传下载文件
Deep understanding of JVM (I) - memory structure (I)
In distributed scenarios, do you know how to generate unique IDs?
Ardunio esp32 obtains real-time temperature and humidity in mqtt protocol (DH11)