Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error C2988: 不可识别的模板声明/定义 #218

Open
ersonw opened this issue Mar 9, 2024 · 1 comment
Open

error C2988: 不可识别的模板声明/定义 #218

ersonw opened this issue Mar 9, 2024 · 1 comment

Comments

@ersonw
Copy link

ersonw commented Mar 9, 2024

FAILED: server/CMakeFiles/TServer.dir/main.cpp.obj
"D:\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe" /TP -DDISABLE_REPORT -DENABLE_OPENSSL -DENABLE_VERSION -DMP4V2_NO_STDINT_DEFS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DUNICODE -DWIN32 -DWIN32_LEAN_AND_MEAN -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -D_WINSOCK_DEPRECATED_NO_WARNINGS -I"C:\Program Files (x86)\openssl\include" -IC:\Users\Administrator\Desktop\project\telegram\cmake-build-debug -IC:\Users\Administrator\Desktop\project\telegram\third_party -IC:\Users\Administrator\Desktop\project\telegram\third_party\jsoncpp\include -IC:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src -IC:\Users\Administrator\Desktop\project\telegram\src -external:IE:\Qt\6.5.3\msvc2019_64\include\QtCore -external:IE:\Qt\6.5.3\msvc2019_64\include -external:IE:\Qt\6.5.3\msvc2019_64\mkspecs\win32-msvc -external:IE:\Qt\6.5.3\msvc2019_64\include\QtGui -external:IE:\Qt\6.5.3\msvc2019_64\include\QtWidgets -external:IE:\Qt\6.5.3\msvc2019_64\include\QtNetwork -external:W0 /DWIN32 /D_WINDOWS /EHsc /Ob0 /Od /RTC1 -std:c++17 /wd4566 /wd4819 /EHsc /nologo -Zc:__cplusplus -permissive- -utf-8 /showIncludes /Foserver\CMakeFiles\TServer.dir\main.cpp.obj /Fdserver\CMakeFiles\TServer.dir\ /FS -c C:\Users\Administrator\Desktop\project\telegram\server\main.cpp
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(187): error C2988: 不可识别的模板声明/定义
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(187): note: 模板实例化上下文(最早的实例化上下文)为
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(195): note: 查看对正在编译的 类 模板 实例化“toolkit::NoticeHelper<RET(Args...)>”的引用
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(187): error C2059: 语法错误:“const”
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(187): error C2334: “{”的前面有意外标记;跳过明显的函数体
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(192): error C2988: 不可识别的模板声明/定义
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(192): error C2143: 语法错误: 缺少“)”(在“&”的前面)
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(192): error C2143: 语法错误: 缺少“;”(在“&”的前面)
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(192): error C2238: 意外的标记位于“;”之前
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(192): error C2059: 语法错误:“&”
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(192): error C2059: 语法错误:“)”
C:\Users\Administrator\Desktop\project\telegram\third_party\ZLToolKit\src\Util/NoticeCenter.h(192): error C2334: “{”的前面有意外标记;跳过明显的函数体

@xia-chu
Copy link
Member

xia-chu commented Mar 11, 2024

你msvc版本太老了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants