OpenVideoCall 编译失败

Agora_Native_SDK_for_Windows(x64)_v2_8_0_VOICE demo中OpenVideoCall,编译失败
错误提示:

error LNK2019: 无法解析的外部符号 __imp__getAgoraSdkVersion,该符号在函数 "public: static class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > __cdecl CAgoraObject::GetSDKVersion(void)" (?GetSDKVersion@CAgoraObject@@SA?AV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@XZ) 中被引用	error LNK2019: 无法解析的外部符号 __imp__createAgoraRtcEngine,该符号在函数 "public: static class CAgoraObject * __cdecl CAgoraObject::GetAgoraObject(wchar_t const *)" (?GetAgoraObject@CAgoraObject@@SAPAV1@PB_W@Z) 中被引用

你的电脑是64位的吗?

1、你在include后面加上这段代码试试看:

#pragma comment(lib,"ws2_32.lib")

#pragma comment(lib,"ws2_32.lib")

2、工程属性->配置(设为‘所有配置’)->配置属性->C/C+±>预处理器定义(设为‘GLUT_BUILDING_LIB’),然后:工程属性->配置(设为‘活动(Debug)’)->链接器->系统->子系统(设为‘控制台(/SUBSYSTEM:CONSOLE)’)

电脑是64位的
按照调整设置修改后重新生成项目,出现另一个提示
错误 1 error C4996: ‘vsnprintf’: This function or variable may be unsafe. Consider using vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2 IntelliSense: 函数调用中的参数太多 e:\windowsapp\Agora VOICE\examples\OpenVideoCall\OpenVideoCall\AgoraObject.cpp 241 83 OpenVideoCall
3 IntelliSense: 函数调用中的参数太少 e:\windowsapp\Agora VOICE\examples\OpenVideoCall\OpenVideoCall\AgoraObject.cpp 434 43 OpenVideoCall
4 IntelliSense: “LPCTSTR” 类型的实参与 “DWORD” 类型的形参不兼容 e:\windowsapp\Agora VOICE\examples\OpenVideoCall\OpenVideoCall\AgoraObject.cpp 568 51 OpenVideoCall
5 IntelliSense: “int” 类型的实参与 “LPCCH” 类型的形参不兼容 e:\windowsapp\Agora VOICE\examples\OpenVideoCall\OpenVideoCall\AgoraObject.cpp 568 66 OpenVideoCall
6 IntelliSense: “CHAR *” 类型的实参与 “int” 类型的形参不兼容 e:\windowsapp\Agora VOICE\examples\OpenVideoCall\OpenVideoCall\AgoraObject.cpp 568 79 OpenVideoCall
7 IntelliSense: “int” 类型的实参与 “LPWSTR” 类型的形参不兼容 e:\windowsapp\Agora VOICE\examples\OpenVideoCall\OpenVideoCall\AgoraObject.cpp 568 87 OpenVideoCall
8 IntelliSense: 函数调用中的参数太少 e:\windowsapp\Agora VOICE\examples\OpenVideoCall\OpenVideoCall\AgoraObject.cpp 568 90 OpenVideoCall