IntelliSense Errors on Visual Studio 2022.

Andile Cele 1 Reputation point
2022-02-02T17:25:20.13+00:00

I have just started using visual studio 2022 for creating my first cross platform application. I installed an external library wxWidgets and started coding. The code return no errors on my code and when I select build only on Visual Studio terminal it returns no errors but on IntelliSense error it returns over 200 errors of c++ files.(When I created my project I opened an C++ project as wxWidgets is a C++ library.) At first I thought these errors won't be a problem as I didn't use the at all. Now when I run my project it returns these errors:

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(31,13): error C2039: 'strcat': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(31,1): error C2873: 'strcat': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(33,13): error C2039: 'strcmp': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(33,1): error C2873: 'strcmp': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(34,13): error C2039: 'strcoll': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(34,1): error C2873: 'strcoll': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(35,13): error C2039: 'strcpy': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(35,1): error C2873: 'strcpy': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(36,13): error C2039: 'strcspn': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(36,1): error C2873: 'strcspn': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(37,13): error C2039: 'strerror': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(37,1): error C2873: 'strerror': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(38,13): error C2039: 'strlen': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(38,1): error C2873: 'strlen': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(39,13): error C2039: 'strncat': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(39,1): error C2873: 'strncat': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(40,13): error C2039: 'strncmp': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(40,1): error C2873: 'strncmp': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(41,13): error C2039: 'strncpy': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(41,1): error C2873: 'strncpy': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(42,13): error C2039: 'strpbrk': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(42,1): error C2873: 'strpbrk': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(44,13): error C2039: 'strspn': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(44,1): error C2873: 'strspn': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(46,13): error C2039: 'strtok': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(46,1): error C2873: 'strtok': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(47,13): error C2039: 'strxfrm': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cstring(47,1): error C2873: 'strxfrm': symbol cannot be used in a using-declaration

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(37,18): error C2039: 'acosf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(37,23): error C3861: 'acosf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(41,18): error C2039: 'acoshf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(41,24): error C3861: 'acoshf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(45,18): error C2039: 'asinf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(45,23): error C3861: 'asinf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(49,18): error C2039: 'asinhf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(49,24): error C3861: 'asinhf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(53,18): error C2039: 'atanf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(53,23): error C3861: 'atanf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(57,18): error C2039: 'atanhf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(57,24): error C3861: 'atanhf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(61,18): error C2039: 'atan2f': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(61,24): error C3861: 'atan2f': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(65,18): error C2039: 'cbrtf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(65,23): error C3861: 'cbrtf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(89,18): error C2039: 'cosf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(89,22): error C3861: 'cosf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(93,18): error C2039: 'coshf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(93,23): error C3861: 'coshf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(97,18): error C2039: 'erff': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(97,22): error C3861: 'erff': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(101,18): error C2039: 'erfcf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(101,23): error C3861: 'erfcf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(105,18): error C2039: 'expf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(105,22): error C3861: 'expf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(109,18): error C2039: 'exp2f': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(109,23): error C3861: 'exp2f': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(113,18): error C2039: 'expm1f': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(113,24): error C3861: 'expm1f': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(117,18): error C2039: 'fabsf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(117,23): error C3861: 'fabsf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(121,18): error C2039: 'fdimf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(121,23): error C3861: 'fdimf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(135,18): error C2039: 'fmaf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(135,22): error C3861: 'fmaf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(139,18): error C2039: 'fmaxf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(139,23): error C3861: 'fmaxf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(143,18): error C2039: 'fminf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(143,23): error C3861: 'fminf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(147,18): error C2039: 'fmodf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(147,23): error C3861: 'fmodf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(151,18): error C2039: 'frexpf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(151,24): error C3861: 'frexpf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(155,18): error C2039: 'hypotf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(155,24): error C3861: 'hypotf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(159,18): error C2039: 'ilogbf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(159,24): error C3861: 'ilogbf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(163,18): error C2039: 'ldexpf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(163,24): error C3861: 'ldexpf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(167,18): error C2039: 'lgammaf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(167,25): error C3861: 'lgammaf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(171,18): error C2039: 'llrintf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(171,25): error C3861: 'llrintf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(175,18): error C2039: 'llroundf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(175,26): error C3861: 'llroundf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(179,18): error C2039: 'logf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(179,22): error C3861: 'logf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(183,18): error C2039: 'log10f': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(183,24): error C3861: 'log10f': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(187,18): error C2039: 'log1pf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(187,24): error C3861: 'log1pf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(191,18): error C2039: 'log2f': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(191,23): error C3861: 'log2f': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(195,18): error C2039: 'logbf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(195,23): error C3861: 'logbf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(199,18): error C2039: 'lrintf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(199,24): error C3861: 'lrintf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(203,18): error C2039: 'lroundf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(203,25): error C3861: 'lroundf': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(207,18): error C2039: 'modff': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(207,23): error C3861: 'modff': identifier not found

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(211,18): error C2039: 'nearbyintf': is not a member of '`global namespace''

1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cmath(211,28): fatal error C1003: error count exceeds 100; stopping compilation

I have tried reinstalling my Visual Studio 2022 and repaired it I even installed the latest window SDK. I also thought maybe the cause of the problem my be my window so I updated my window. I have also tried enabling my IntelliSense and it still returns these errors. So that when I deleted the .vc folder and it still didn't help.

So I'm not sure what the problem here, so can anyone please help me. Thanks in Advance!!

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,526 questions
{count} votes