Topics

The following error occurred when compiling NVDA locally using visual studio 2019

 

hello
The following error occurs when compiling NVDA locally using visual studio 2019 The following is the log:
C:\Users\dpy\source\repos\nvda>scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... cl /Fobuild\x86\remote\gdiHooks.obj /c build \x86\remote\gdiHooks.cpp /TP /EHsc /nologo /W3 /WX /Od /MT /DUNICODE /D_CRT_SECURE_NO_DEPRECATE /DLOGLEVEL=15 /D _WIN32_WINNT=_WIN32_WINNT_WIN7 /DNDEBUG /Iinclude /Imiscdeps\include /Ibuild\x86 /Z7 gdiHooks .cpp C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(36): error C2039: "wstring": Not a member of "std" C:\Program Files (x86)\ Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See the statement for "std" C:\Users\dpy\source\repos\nvda\build\x86\ Remote\displayModel.h(36): error C3646: "text": Unknown rewrite specifier C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(36): error C4430: Missing type specifier - assumed to be int. Note: C++ does not support the default int C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(51): error C2039: "wstring": Not a member of "std" C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See the statement for "std" C:\Users\dpy\source\repos\nvda \build\x86\remote\displayModel.h(51): error C2061: Syntax error: Identifier "wstring" C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(98) : error C2039: "wstring": Not a member of "std" C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See "std" for the statement C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(98): error C4430: Missing type specifier - assumed to be int. Note: C++ does not support the default int C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(98): error C2143: Syntax error: Missing "," (in front of "&" C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(139): error C2039: "wstring": Not a member of "std" C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See the statement for "std" C:\Users\dpy\source\repos\nvda\build\x86\remote \displayModel.h(139): error C2061: Syntax error: Identifier "wstring" C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(148): error C2039: "wstring ": Not a member of "std" C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See the statement for "std" C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(148): error C2061: Syntax error: Identifier "wstring" build\x86\remote\gdiHooks.cpp(502): Error C2661: "displayModel_t::insertChunk : Not override function accepts seven parameters scons: *** [build \ x86 \ remote \ gdiHooks.obj] Error 2 scons: building terminated because of errors.
Reproduce steps:
Upgrade visual studio to 2019 16.0.0
Then compile NVDA with scons and the above error occurs.
thank

Brian's Mail list account
 

Not my end of the ship but has this got anything to do with your issue?
[nvaccess/nvda] SCons and Visual Studio 2019 (#9446)

Brian
bglists@...
Sent via blueyonder.
Please address personal E-mail to:-
briang1@..., putting 'Brian Gaff'
in the display name field.

----- Original Message -----
From: "dingpengyu" <@dingpengyu>
To: <nvda-devel@groups.io>
Sent: Thursday, April 04, 2019 10:07 AM
Subject: [nvda-devel] The following error occurred when compiling NVDA locally using visual studio 2019


hello
The following error occurs when compiling NVDA locally using visual studio 2019 The following is the log:
C:\Users\dpy\source\repos\nvda>scons scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... cl /Fobuild\x86\remote\gdiHooks.obj /c build \x86\remote\gdiHooks.cpp /TP /EHsc /nologo /W3 /WX /Od /MT /DUNICODE /D_CRT_SECURE_NO_DEPRECATE /DLOGLEVEL=15 /D _WIN32_WINNT=_WIN32_WINNT_WIN7 /DNDEBUG /Iinclude /Imiscdeps\include /Ibuild\x86 /Z7 gdiHooks .cpp C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(36): error C2039: "wstring": Not a member of "std" C:\Program Files (x86)\ Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See the statement for "std" C:\Users\dpy\source\repos\nvda\build\x86\ Remote\displayModel.h(36): error C3646: "text": Unknown rewrite specifier C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(36): error C4430: Missing type specifier - assumed to be int. Note: C++ does not support the default int C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(51): error C2039: "wstring": Not a member of "std" C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See the statement for "std" C:\Users\dpy\source\repos\nvda \build\x86\remote\displayModel.h(51): error C2061: Syntax error: Identifier "wstring" C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(98) : error C2039: "wstring": Not a member of "std" C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See "std" for the statement C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(98): error C4430: Missing type specifier - assumed to be int. Note: C++ does not support the default int C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(98): error C2143: Syntax error: Missing "," (in front of "&" C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(139): error C2039: "wstring": Not a member of "std" C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See the statement for "std" C:\Users\dpy\source\repos\nvda\build\x86\remote \displayModel.h(139): error C2061: Syntax error: Identifier "wstring" C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(148): error C2039: "wstring ": Not a member of "std" C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.20.27508\include\deque(19): note: See the statement for "std" C:\Users\dpy\source\repos\nvda\build\x86\remote\displayModel.h(148): error C2061: Syntax error: Identifier "wstring" build\x86\remote\gdiHooks.cpp(502): Error C2661: "displayModel_t::insertChunk : Not override function accepts seven parameters scons: *** [build \ x86 \ remote \ gdiHooks.obj] Error 2 scons: building terminated because of errors.
Reproduce steps:
Upgrade visual studio to 2019 16.0.0
Then compile NVDA with scons and the above error occurs.
thank