当前位置:网站首页>[technical course] peerconnection in webrtc self built by visual studio 2017_ The client program reported an external symbol error that LNK2019 could not resolve

[technical course] peerconnection in webrtc self built by visual studio 2017_ The client program reported an external symbol error that LNK2019 could not resolve

2020-11-10 08:53:00 2k1cyjd

We talked about it. TSINGSEE Qingxi video R & D team is working on webrtc Conduct research , Tried in Visual Studio 2017 build by oneself WebRTC in peerconnection_client Program . We have dealt with several problems of reporting errors , If you are interested, please have a look at .

After solving the previous problem , Let's compile... Again peerconnection_client Program , There will be all kinds of “LNK2019 Unresolved external symbols public:_thiscall xxxxxx(xxxxxx), The sign is in the function protected:void _thiscall xxxxxx(xxxxxx) Cited in ”; Causes the program to be unable to continue compiling .

86.png

To analyze problems

Using compiled window WebRTC The library of , Reference to header file , But there is no reference to third-party library files , So the newspaper “ Cannot parse external symbols ” error .

solve the problem

1、 It's usually good to configure the project properties . Add the directory of the corresponding library file in the library file directory of the project properties ( The connector -> Input -> Add the corresponding library file to the additional dependency ); But for WebRTC More library files are referenced , So open the compiled WebRTC Output file directory , And find peerconnection_client.ninja file , Open the file , Here's the picture , Find all (.lib file ), Add to vs The library file can be .

87.png

( The text is too long , Only a small fraction can be intercepted )

2、 There's another way , That is to say vs2017 Using preprocessing commands in #pragma comment(lib, “xxx.lib”); hold xxx Replace with the one you want to load lib file . The use of this command is not the ultimate goal , Because for WebRTC More library files are referenced , So it's a little cumbersome to write about , But this approach is the codeword version of the first solution , You can also try .

88.png

That's all for the compilation problem described above , Of course TSINGSE Qingxi video R & D team welcomes you to continue to discuss development issues with us . meanwhile , If you want to know more about video related solutions , Also welcome to contact us about .

版权声明
本文为[2k1cyjd]所创,转载请带上原文链接,感谢