Suddenly dozens of errors showing up when compiling

  • Thread starter Thread starter Gurunama
  • Start date Start date
G

Gurunama

Guest
I have made a program with C in Visual Studio which has been working fine. Lately, I have been doing some minor updates, and suddenly dozens of errors show up when compiling, but without showing any error in my own code. I have absolutely no idea why this happens and what to do about it, and therefore need some help. Here is the error messages:


1>------ Build started: Project: Raga_demo, Configuration: Debug Win32 ------
1>Main.c
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vadefs.h(63,30): error C2054: expected '(' to follow 'testnummer'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vadefs.h(63,39): error C2085: 'uintptr_t': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vadefs.h(72,30): error C2085: 'va_list': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(61,56): warning C4081: expected ')'; found 'string'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(96,1): warning C4079: unexpected token 'string'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(96,1): warning C4081: expected 'newline'; found ')'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(197,36): error C2085: 'size_t': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(198,39): error C2085: 'ptrdiff_t': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(199,38): error C2085: 'intptr_t': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(209,30): error C2085: '__vcrt_bool': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(228,35): error C2085: 'wchar_t': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(338,46): error C2085: '__security_init_cookie': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(341,64): error C2146: syntax error: missing ')' before identifier '_StackCookie'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(341,64): error C2085: '__security_check_cookie': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(341,64): error C2146: syntax error: missing ',' before identifier '_StackCookie'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(341,76): error C2059: syntax error: ')'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(342,67): error C2085: '__report_gsfailure': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(349,18): error C2085: 'uintptr_t': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(349,18): error C2146: syntax error: missing ',' before identifier '__security_cookie'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime.h(357,1): warning C4161: #pragma pack(pop...): more pops than pushes
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\excpt.h(15,56): warning C4081: expected ')'; found 'string'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\excpt.h(17,1): warning C4079: unexpected token 'string'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\excpt.h(17,1): warning C4081: expected 'newline'; found ')'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\excpt.h(28,24): error C2085: 'EXCEPTION_DISPOSITION': not in formal parameter list
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\excpt.h(38,5): error C2061: syntax error: identifier 'EXCEPTION_DISPOSITION'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\excpt.h(85,1): warning C4161: #pragma pack(pop...): more pops than pushes
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(270,28): error C2143: syntax error: missing ')' before 'const'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(270,28): error C2143: syntax error: missing '{' before 'const'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(270,34): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(275,9): error C2059: syntax error: ')'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(283,24): error C2143: syntax error: missing ')' before 'const'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(283,24): error C2143: syntax error: missing '{' before 'const'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(284,24): error C2143: syntax error: missing ';' before 'const'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(287,35): error C2059: syntax error: ')'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(562,20): error C2061: syntax error: identifier 'rsize_t'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h(562,20): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(463,17): error C2061: syntax error: identifier 'WCHAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(463,17): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(469,15): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(470,21): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(472,33): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(473,33): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(474,39): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(475,43): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(476,39): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(477,34): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(478,40): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(479,49): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(481,37): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(482,43): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(483,47): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(484,53): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(486,16): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(487,22): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(488,26): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(489,32): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(493,21): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(494,31): error C2143: syntax error: missing '{' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(560,15): error C2061: syntax error: identifier 'TCHAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(560,15): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(560,20): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(561,15): error C2061: syntax error: identifier 'TBYTE'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(561,15): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(561,21): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(565,15): error C2061: syntax error: identifier 'LPTCH'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(565,15): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(565,20): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(566,16): error C2061: syntax error: identifier 'LPCTCH'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(566,16): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(566,22): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(567,16): error C2061: syntax error: identifier 'PTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(567,16): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(567,21): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(568,17): error C2061: syntax error: identifier 'PCTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(568,17): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(568,23): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(569,17): error C2061: syntax error: identifier 'PUTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(569,17): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(569,23): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(570,18): error C2061: syntax error: identifier 'PCUTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(570,18): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(570,25): error C2059: syntax error: ','
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(571,16): error C2061: syntax error: identifier 'LP'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(571,16): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(572,17): error C2061: syntax error: identifier 'PZZTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(572,17): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(573,18): error C2061: syntax error: identifier 'PCZZTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(573,18): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(574,18): error C2061: syntax error: identifier 'PUZZTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(574,18): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(575,19): error C2061: syntax error: identifier 'PCUZZTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(575,19): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(576,17): error C2061: syntax error: identifier 'PZPTSTR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(576,17): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(577,16): error C2061: syntax error: identifier 'PNZTCH'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(577,16): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(578,17): error C2061: syntax error: identifier 'PCNZTCH'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(578,17): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(579,17): error C2061: syntax error: identifier 'PUNZTCH'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(579,17): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(580,18): error C2061: syntax error: identifier 'PCUNZTCH'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(580,18): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(25,49): error C2146: syntax error: missing ')' before identifier '_MaxCount'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(25,49): error C2081: 'size_t': name in formal parameter list illegal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(25,49): error C2061: syntax error: identifier '_MaxCount'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(25,49): error C2059: syntax error: ';'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(26,5): error C2059: syntax error: ')'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(32,41): error C2146: syntax error: missing ')' before identifier '_Size'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(32,41): error C2081: 'size_t': name in formal parameter list illegal
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include\vcruntime_string.h(32,41): fatal error C1003: error count exceeds 100; stopping compilation
1>Done building project "Raga_demo.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Thanks in advance.

Sincerely

Continue reading...
 
Back
Top