vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Identifier "namespace" is undefined

Open dorinlazar opened this issue 9 years ago • 4 comments

OS: Linux, CentOS 7. Due to issue #19 I use a script that loads the extension against a custom built GLIBC. VSCode: Stable, 1.18.0 C++ Extension: 0.14.2

Header is named X.H (capital H).

#pragma once

namespace x {
}

I get a red squiggle with «identifier "namespace" is undefined» No log messages in the Output window.

dorinlazar avatar Nov 16 '17 07:11 dorinlazar

I'm not able to repro this. Is this a transient/temporary error? What line/character is the error appearing on?

sean-mcmanus avatar Nov 16 '17 22:11 sean-mcmanus

It no longer reproduces with VSCode 1.18.1

dorinlazar avatar Nov 19 '17 09:11 dorinlazar

I just installed VS code 1.32.3 and found this problem. My OS is WSL+ RedHat. Not sure how to fix it.

Version: 1.32.3 Commit: a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4 Date: 2019-03-14T23:38:49.842Z Electron: 3.1.6 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Linux x64 4.4.0-17763-Microsoft

Also I got errors like "variable class" is not a type name.

cpei-avalara avatar Mar 19 '19 14:03 cpei-avalara

Hi @cpei-avalara, can you please open a new issue with additional details about your C or C+ configuration? This issue is closed.

bobbrow avatar Mar 19 '19 16:03 bobbrow