netease-kit / NIM_PC_Demo

云信Windows(PC) C/C++ Demo源码仓库
Other
275 stars 174 forks source link

namespace "std" has no tag member named "_Ref_count_obj" #88

Closed Lincong-pro closed 2 years ago

Lincong-pro commented 2 years ago

1>async_do_modal.cpp 1>C:\Users\lovely-boy\Desktop\NIM_PC_Demo\tool_kits\shared\modal_wnd\async_modal_runner.h(49,20): error C2039: '_Ref_count_obj': is not a member of 'std' 1>D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\stack(20): message : see declaration of 'std' 1>C:\Users\lovely-boy\Desktop\NIM_PC_Demo\tool_kits\shared\modal_wnd\async_modal_runner.h(49,34): error C3856: '_Ref_count_obj': symbol is not a class template 1>C:\Users\lovely-boy\Desktop\NIM_PC_Demo\tool_kits\shared\modal_wnd\async_modal_runner.h(49,51): error C2098: unexpected token after data member 'AsyncModalRunner' 1>C:\Users\lovely-boy\Desktop\NIM_PC_Demo\tool_kits\shared\modal_wnd\async_modal_runner.h(49,51): error C2059: syntax error: '>' 1>async_modal_runner.cpp 1>C:\Users\lovely-boy\Desktop\NIM_PC_Demo\tool_kits\shared\modal_wnd\async_modal_runner.h(49,20): error C2039: '_Ref_count_obj': is not a member of 'std' 1>D:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\stack(20): message : see declaration of 'std' 1>C:\Users\lovely-boy\Desktop\NIM_PC_Demo\tool_kits\shared\modal_wnd\async_modal_runner.h(49,34): error C3856: '_Ref_count_obj': symbol is not a class template 1>C:\Users\lovely-boy\Desktop\NIM_PC_Demo\tool_kits\shared\modal_wnd\async_modal_runner.h(49,51): error C2098: unexpected token after data member 'AsyncModalRunner' 1>C:\Users\lovely-boy\Desktop\NIM_PC_Demo\tool_kits\shared\modal_wnd\async_modal_runner.h(49,51): error C2059: syntax error: '>' 1>Generating Code... 1>Done building project "shared.vcxproj" -- FAILED.

Lincong-pro commented 2 years ago

It occurred some question when compiling the base>shared library.However,I find it is C14 Standard.How do I solve the question?

Lincong-pro commented 2 years ago

你好,请问可以回答你们怎么解决这个问题的吗

nmgwddj commented 2 years ago

Try to use develop branch.

Lincong-pro commented 2 years ago

Yeah,I've already solved the problem!Thank you!