所以我的目标是使用WebRTC C++ API创建本地WebRTC应用程序。将原生WebRTC应用程序与Visual Studio链接
https://github.com/ipop-project/ipop-project.github.io/wiki/Building-the-WebRTC-lib-for-Windows
构建完成我试图创建一个新的Visual Studio控制台项目并添加以下代码后:
与使用下列指南的Visual Studio(2015年)使用我编的WebRTC
#include <iostream>
#define WEBRTC_WIN
#include <webrtc/api/peerconnection.h>
#include <webrtc/api/peerconnectionfactory.h>
#include <webrtc/api/peerconnectioninterface.h>
int main()
{
auto pcf = webrtc::CreatePeerConnectionFactory();
std::cout << "Hallo!" << std::endl;
}
将构建目录添加到包含搜索路径工作正常,但我无法链接应用程序,搜索构建目录的lib文件并将它们添加到链接器只添加更多的链接错误,因为有一大堆,我怀疑他们中的一些不应该链接到我的应用程序。
什么是链接应用程序的正确方法,以及如何知道我使用的功能.lib文件驻留在哪里?
什么是链接错误说? – Matt
请参阅我对Martin Bonner的回答的评论。链接到webrtc生成期间生成的库会生成以下27个链接器错误:http://pastebin.com/Q9s3X5wA – monoceres