microsoft / microsoft/Windows-classic-samples
error C2275
Open
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 30d
Description
已启动生成…
1>------ 已启动生成: 项目: vshadow, 配置: Debug x64 ------
1>cl : 命令行 warning D9035: “Gm”选项已否决,并将在将来的版本中移除
1>tracing.cpp
1>D:\Windows\microsoft\Windows-classic-samples\Samples\Win7Samples\winbase\vss\vshadow\tracing.cpp(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
1>D:\Windows\microsoft\Windows-classic-samples\Samples\Win7Samples\winbase\vss\vshadow\tracing.cpp(51,36): error C2275: “std::wstring”: 将此类型用作表达式非法
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\xstring(4872): message : 参见“std::wstring”的声明
1>已完成生成项目“vshadow.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open vshadow/tracing.cpp and inspect line 51, where the Visual Studio 2019 build reports error C2275 for std::wstring. Reproduce the Debug x64 build of the vshadow project and review the surrounding code and the file-encoding warning. Done means the project builds successfully without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100