Visual studio 2017 为什么pjsua构建在将Windows(/SUBSYSTEM:Windows)设置为链接器后显示错误->;Visual Studio 2017中的子系统属性
我尝试在Windows10x64上编译pjproject-2.9。我尝试了以下命令。全部运行成功 (i) /配置(ii)制作和制作安装 我正在使用Visual Studio 2017。对于建设项目,我遵循上述VS 2015文件中给出的程序:Visual studio 2017 为什么pjsua构建在将Windows(/SUBSYSTEM:Windows)设置为链接器后显示错误->;Visual Studio 2017中的子系统属性,visual-studio-2017,sdl-2,pjsua2,visual-studio-2017-build-tools,Visual Studio 2017,Sdl 2,Pjsua2,Visual Studio 2017 Build Tools,我尝试在Windows10x64上编译pjproject-2.9。我尝试了以下命令。全部运行成功 (i) /配置(ii)制作和制作安装 我正在使用Visual Studio 2017。对于建设项目,我遵循上述VS 2015文件中给出的程序: 打开pjproject-vs14.sln解决方案文件-->将pjsua设置为启动项目-->将Win32设置为平台-->选择调试或发布构建-->构建项目 在pjproject/pjlib/include/pj中创建了一个空的config_site.h文件 我在
LNK2019 unresolved external symbol _SDL_main referenced in function _main_getcmdline pjsua ...\pjproject-2.9\pjsip-apps\build\SDL2main.lib(SDL_windows_main.obj) 1
LNK1120 1 unresolved externals pjsua ...\pjproject-2.9\pjsip-apps\bin\pjsua-i386-Win32-vc14-Release.exe 1```
Please Note: I added/changed property one by one and generated a build. To see which of these is creating the error. only after changing from CONSOLE(/SUBSYSTEM: CONSOLE) to WINDOWS(/SUBSYSTEM:WINDOWS), I got those error.
Every time before pjsua build, i do pjsua clean. Still, I get these errors
All these error are linker related. Is there any property I have to change?
…@HansPassant,他们没有提到Windows(/SUBSYSTEM:Windows)错误。在该链接中,他们也没有提到Windows10支持SDL2。这就是导致这些错误的原因吗?@HansPassant我已经向SDL wiki确认sdl2支持windows 10。你对这个错误还有其他想法吗?