Skip to content

'"size_t" is ambiguous‘ when using WSL #1535

@owent

Description

@owent
  • Operating System: Windows Pro 10.0.16299
  • VS Code version: 1.20.0, not a insider version
  • C/C++ extension version: 0.14.6

When I use "intelliSenseMode": "clang-x64" and using WSL(Ubuntu).
There are many '"size_t" is ambiguous' in problem panel.
My configure is just like the sample on https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/Windows%20Subsystem%20for%20Linux.md .

size_t is defined in both c++config.h and stddef.h. but the size_t in c++config.h is in a namespace(std). I think it should not report any problem if I use size_t(which I means ::size_t) as a type name.

vsc_cpp_issue_3
vsc_cpp_issue_4

.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions