We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

Navigator_Test build error on devkit 26

Newbie
Participant

Facing below error during build this sample code from API Devkit 26, Anyone could assist how to fixed?

=======

2>------ Build started: Project: AddOn, Configuration: Debug x64 ------
2>APICommon.c
2>AddOnNavigatorViewPointData.cpp
2>C:\Program Files\GRAPHISOFT\API Development Kit 26.3000\Support\Inc\stddef.h(214,23): error C2371: 'size_t': redefinition; different basic types
2>D:\ACaddons\Navigator_Test\Src\AddOnNavigatorViewPointData.cpp : message : see declaration of 'size_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h(349,20): error C2065: 'wchar_t': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h(349,28): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h(362,16): error C2065: 'wchar_t': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h(362,24): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(50,49): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(517,35): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(517,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(517,35): error C2495: 'wchar_t': '__declspec(allocator)' can only be applied to function declarations or definitions
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(518,28): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(527,74): error C2065: '_PBuffer': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(528,58): error C2065: '_PBufferSizeInWords': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(528,42): error C2275: 'size_t': illegal use of this type as an expression
2>D:\ACaddons\Navigator_Test\Src\AddOnNavigatorViewPointData.cpp : message : see declaration of 'size_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(529,50): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(537,35): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(537,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(538,57): error C2065: '_FullPath': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(539,50): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(548,35): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(548,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(549,54): error C2065: '_DstBuf': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(550,42): error C2062: type 'int' unexpected
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(558,35): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(558,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(560,42): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(565,10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(568,35): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(568,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(569,28): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(621,20): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\crtdbg.h(641,20): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(56,38): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(61,1): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(68,1): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(73,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(68,1): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(79,38): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(84,1): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(91,1): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(96,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(91,1): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(101,38): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(106,1): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(113,1): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(118,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(113,1): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(122,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(128,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(135,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(142,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(150,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(157,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(165,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(172,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(180,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(187,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(195,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(201,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(208,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(214,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(221,24): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(226,26): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(232,24): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(237,26): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(243,24): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(248,26): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(254,24): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(259,26): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(266,38): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(272,21): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(272,21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(274,32): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(276,10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(281,38): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(287,21): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(287,21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(289,32): error C2061: syntax error: identifier 'wchar_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(291,10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(295,24): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(300,26): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(306,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(313,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(321,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(328,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(339,35): error C2143: syntax error: missing ';' before '*'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(339,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(340,57): error C2065: '_Buffer': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(341,50): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(349,53): error C2065: '_Buffer': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(350,38): error C2275: 'size_t': illegal use of this type as an expression
2>D:\ACaddons\Navigator_Test\Src\AddOnNavigatorViewPointData.cpp : message : see declaration of 'size_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(350,53): error C2146: syntax error: missing ')' before identifier '_BufferCount'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(357,1): error C2065: '_Buffer': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(357,1): error C2988: unrecognizable template declaration/definition
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(357,1): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(364,1): error C2143: syntax error: missing ';' before '{'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(364,1): error C2447: '{': missing function header (old-style formal list?)
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(366,1): error C2065: '_Buffer': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(366,1): error C2988: unrecognizable template declaration/definition
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(366,1): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(376,28): error C2988: unrecognizable template declaration/definition
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(376,28): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(381,42): error C2988: unrecognizable template declaration/definition
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(381,42): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(389,52): error C2988: unrecognizable template declaration/definition
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(389,52): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(400,1): error C2988: unrecognizable template declaration/definition
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(400,1): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(403,1): error C2143: syntax error: missing ';' before '{'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(403,1): error C2447: '{': missing function header (old-style formal list?)
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(410,104): error C2065: '_Buffer': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(411,104): error C2065: '_BufferCount': undeclared identifier
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(411,89): error C2275: 'size_t': illegal use of this type as an expression
2>D:\ACaddons\Navigator_Test\Src\AddOnNavigatorViewPointData.cpp : message : see declaration of 'size_t'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(412,97): error C2988: unrecognizable template declaration/definition
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(412,97): error C2059: syntax error: 'const'
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(418,25): error C2988: unrecognizable template declaration/definition
2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wstdlib.h(418,25): fatal error C1003: error count exceeds 100; stopping compilation
2>AddRenameViewPointItemDialog.cpp
2>NavigatorCallbackInterface.cpp
2>NavigatorDialog.cpp
2>NavigatorPalette.cpp
2>NavigatorTest.cpp
2>NavigatorUtility.cpp
2>NavigatorWindowHandling.cpp
2>PropertyUtils.cpp
2>Resources.cpp
2>UserItemDialog.cpp
2>Generating Code...
2>Done building project "AddOn.vcxproj" -- FAILED.
3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

0 REPLIES 0