<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: unordered_map, APIinc.h and errors in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589952#M9214</link>
    <description>&lt;P&gt;*please note edits and revisions to the previous post that I have made off and on throughout this afternoon.&lt;/P&gt;
&lt;P&gt;It's the final version, I promise...&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 23:08:46 GMT</pubDate>
    <dc:creator>MudratDetector</dc:creator>
    <dc:date>2024-02-26T23:08:46Z</dc:date>
    <item>
      <title>unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589104#M9180</link>
      <description>&lt;P&gt;I have errors at build time, many of which are tied back to unordered_map.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\unordered_map(38,23): error C2061: syntax error: identifier '_Node_handle' 
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\unordered_map(63): message : see reference to class template instantiation 'std::_Umap_traits&amp;lt;_Kty,_Ty,_Tr,_Alloc,_Mfl&amp;gt;' being compiled [G:\dev\v27\JHP_Audit\out\build\x64-Release\JHP_Audit.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\unordered_map(39,41): error C2059: syntax error: '&amp;gt;' 
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\unordered_map(67,35): error C2143: syntax error: missing ',' before '&amp;lt;' 
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\unordered_map(405): message : see reference to class template instantiation 'std::unordered_map&amp;lt;_Kty,_Ty,_Hasher,_Keyeq,_Alloc&amp;gt;' being compiled [G:\dev\v27\JHP_Audit\out\build\x64-Release\JHP_Audit.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\unordered_map(67,60): error C2065: '_Uhash_compare': undeclared identifier 
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\unordered_map(67,36): error C2974: 'std::_Umap_traits': invalid template argument for '_Tr', type expected 
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\unordered_map(30): message : see declaration of 'std::_Umap_traits' [G:\dev\v27\JHP_Audit\out\build\x64-Release\JHP_Audit.vcxproj]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Here are results of a grep on my project files for unordered_map.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1708454139866.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/53679i98556BB783E2EF22/image-size/large?v=v2&amp;amp;px=999" role="button" title="MudratDetector_0-1708454139866.png" alt="MudratDetector_0-1708454139866.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;settings.json&lt;/STRONG&gt; &amp;gt;&amp;gt;&amp;gt; the one instance is associated with "files.associations": {}&lt;BR /&gt;&lt;STRONG&gt;CL.read.1.tlog&lt;/STRONG&gt; &amp;gt;&amp;gt;&amp;gt; is a log file that ties ..\TOOLS\MSVC\14.29.30133\INCLUDE\UNORDERED_MAP back to ACADinc.h&lt;BR /&gt;&lt;STRONG&gt;unordered_map.txt&lt;/STRONG&gt; &amp;gt;&amp;gt;&amp;gt; is a file I saved of the text in the output window after the build&lt;BR /&gt;&lt;STRONG&gt;ACAPinc.h&lt;/STRONG&gt; &amp;gt;&amp;gt;&amp;gt; appears to be the culpret.&amp;nbsp; The two instances in this file are the #include and the usage as an argument in ACAPI_AutoText_GetNoteAutotexts().&amp;nbsp; This copy of ACAPinc.h is dated 8/14/2023 3:14:52 PM and appears to be the latest.&lt;BR /&gt;&lt;BR /&gt;I have read about a different bug with unordered_map and a fix &lt;A href="https://developercommunity.visualstudio.com/t/cannot-use-stdtype-index-as-stdunordered-map-key-w/1532064" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp;that implies using VS17.1&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_1-1708455300246.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/53680iC7B45A968A44AEC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="MudratDetector_1-1708455300246.png" alt="MudratDetector_1-1708455300246.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And another different bug with a workaround&amp;nbsp;&lt;A href="https://github.com/gabime/spdlog/issues/2070" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp;that implies removing options from the compiler.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_3-1708456179822.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/53682i8AF0DD231D17BBBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="MudratDetector_3-1708456179822.png" alt="MudratDetector_3-1708456179822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am using VS2019, Tool set 142, Version 16.11.30&lt;BR /&gt;Would an upgrade to VS17 address my issue too?&lt;BR /&gt;I sort of expected that somethign like this was being handled by&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#include	"ACAPI_MigrationHeader.hpp"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Anyone else ever experience this?&lt;BR /&gt;&lt;BR /&gt;Thanks to all -&amp;nbsp;&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 09:26:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589104#M9180</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-09-17T09:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589326#M9187</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a tough one. At first glance the bugs you've found seem unrelated to me.&lt;BR /&gt;But they got me thinking that maybe the C++ versions are not matching.&lt;BR /&gt;What C++ version are you using? (C++11, C++14, C++17, or something else?)&lt;/P&gt;
&lt;P&gt;And what AC Devkit are you using?&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 09:42:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589326#M9187</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2024-02-22T09:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589397#M9198</link>
      <description>&lt;P&gt;I am developing AC27 Add-ons in Visual Studio 2019 using Tool Set 142.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am verifying in CMakeLists.txt file with this:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;message( STATUS "&amp;gt;&amp;gt;&amp;gt; AC_API_DEVKIT_DIR: $ENV{AC_API_DEVKIT_DIR}")
message (STATUS "Archicad Version: ${ACVersion}")&lt;/LI-CODE&gt;
&lt;P&gt;With output of:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;1&amp;gt; [CMake] -- &amp;gt;&amp;gt;&amp;gt; AC_API_DEVKIT_DIR: C:/Program Files/GRAPHISOFT/API Development Kit 27.3001/Support
1&amp;gt; [CMake] -- Archicad Version: 27&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;I am verifying in CMakeCommon.cmake file with this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;set (AddOnSourcesFolder ${addOnFolder}/Src)
get_filename_component (AddOnSourcesFolderAbsolute "${CMAKE_CURRENT_LIST_DIR}/${AddOnSourcesFolder}" ABSOLUTE)
get_filename_component (AddOnResourcesFolderAbsolute "${CMAKE_CURRENT_LIST_DIR}/${AddOnResourcesFolder}" ABSOLUTE)
message(STATUS "&amp;gt;&amp;gt;&amp;gt; " ${CMAKE_CURRENT_SOURCE_DIR} " &amp;gt;&amp;gt;&amp;gt; " ${AddOnSourcesFolder})
message(STATUS "&amp;gt;&amp;gt;&amp;gt; Value of AddOnSourcesFolderAbsolute is:  " ${AddOnSourcesFolderAbsolute})
message(STATUS "&amp;gt;&amp;gt;&amp;gt; Value of AddOnResourcesFolderAbsolute is:  " ${AddOnResourcesFolderAbsolute})
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With output of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;1&amp;gt; [CMake] -- &amp;gt;&amp;gt;&amp;gt; G:/dev/v27/JHP_Audit &amp;gt;&amp;gt;&amp;gt; ./Src
1&amp;gt; [CMake] -- &amp;gt;&amp;gt;&amp;gt; Value of AddOnSourcesFolderAbsolute is:  G:/dev/v27/JHP_Audit/Src
1&amp;gt; [CMake] -- &amp;gt;&amp;gt;&amp;gt; Value of AddOnResourcesFolderAbsolute is:  G:/dev/v27/JHP_Audit&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of that appears to dial me in to AC27.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the choice of C++17 is being managed also in&amp;nbsp;CMakeCommon.cmake file with this:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;if (${acVersion} LESS 27)
    target_compile_features (${target} PUBLIC cxx_std_14)
else ()
    target_compile_features (${target} PUBLIC cxx_std_17)
endif ()&lt;/LI-CODE&gt;
&lt;P&gt;I feel I have a marginal understanding of the difference between C++17 features being available in VS2019 and choosing to compile as C++17 with the code snippet above.&amp;nbsp; Is there a setting in VS2019 that needs to be made to ensure that the C++17 version of the language features are being used?&amp;nbsp; I know I have seen this choice in VS properties in older, pre-cmake projects but not sure if this handles that choice in the cmake world we are working in these days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there other places I can look to find the answers to your questions above?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, as always, thanks bunches...&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 17:17:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589397#M9198</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-02-22T17:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589441#M9200</link>
      <description>&lt;P&gt;The parts of your setup you've posted look good to me. It seems like setting the compile features is done in a CMake function. So as long as that function is then applied to your target (from the error messages I assume it's called JHP_Audit) you should be good.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Just to be sure, it's sometimes good to clear the CMake cache (In Visual Studio: "Project -&amp;gt; Clear Cache and Reconfigure") or even delete the whole build folder and just configure again.&lt;BR /&gt;&lt;BR /&gt;Otherwise I don't have any further ideas to investigate unfortunately.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 08:07:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589441#M9200</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2024-02-23T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589497#M9202</link>
      <description>&lt;P&gt;Hey Bernd,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for continuing this conversation.&amp;nbsp; It is a real head scratcher...&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"I assume it's called JHP_Audit"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;correct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"it's sometimes good to clear the CMake cache"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;have done that several times&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"or even delete the whole build folder and just configure again"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;have done that a couple of times&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My latest take on this is that I have somewhere in the CMake config files something that is triggereing this behavior that is a leftover relic from the multitude of edits that I did when trying to get this to work when source files were in multiple directories.&amp;nbsp; I have archived and downloaded the current CMake templates from the GS git&amp;nbsp;now that I have pushed all source files into a single directory.&amp;nbsp; I am going to put this project back together from scratch.&amp;nbsp; I notice that the current CMake templates are modified from what I originally downloaded from the GS git.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Maybe when I copy/paste the archived source code into this new project in bits and pieces I can see what/when/where it happens.&amp;nbsp; Fingers crossed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks again for your attention to this effort I am making,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 15:52:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589497#M9202</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-02-23T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589504#M9204</link>
      <description>&lt;P&gt;Could you show some examples on how do you use the unordered_map? Are you sure that the unordered_map and the type you use it with known in the file (you have all the necessary includes)?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 16:06:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589504#M9204</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2024-02-23T16:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589519#M9205</link>
      <description>&lt;P&gt;Hello Viktor,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[please note edits.&amp;nbsp; 40 years of AutoCAD is a hard habit to break...]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks for showing an interest in my little problem here.&amp;nbsp; What follows is how unordered_map is being used in this project.&amp;nbsp; It appears that I am not using unordered_map() specifically in my code, but I do &lt;STRIKE&gt;&lt;EM&gt;&lt;STRONG&gt;#include ACADinc.h&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRIKE&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;include ACAPinc.h&lt;/STRONG&gt;&lt;/EM&gt;, which is the only reference I can find to it when I search 'Entire solution'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;STRIKE&gt;ACADinc.h&lt;/STRIKE&gt; ACAPinc.h [dated 8/14/2023 3:14 PM]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_3-1708705890904.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/53821iCEF99B04F051E0E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_3-1708705890904.png" alt="MudratDetector_3-1708705890904.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;STRIKE&gt;ACADinc.h&lt;/STRIKE&gt;&amp;nbsp;ACAPinc.h [dated 8/14/2023 3:14 PM]:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_4-1708706026095.png" style="width: 913px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/53823iEE348AFB0A8CC491/image-dimensions/913x78?v=v2" width="913" height="78" role="button" title="MudratDetector_4-1708706026095.png" alt="MudratDetector_4-1708706026095.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Maybe I have a different configuration issue that does not allow me to find&amp;nbsp;ACAPI_AutoText_GetNoteAutotexts?&amp;nbsp; I also notice that all the function definitions above and below this one have the same 'not found' message and green squiggle underline.&amp;nbsp; Could that be an indication of why my build is being so grumpy about this???&amp;nbsp; Not sure...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regardless, a search in VS...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_1-1708705612241.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/53818iC484066919C4E9A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_1-1708705612241.png" alt="MudratDetector_1-1708705612241.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;...only finds the two results above, and then this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MudratDetector_0-1708705597098.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/53817i9C57E7AEE498A96E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MudratDetector_0-1708705597098.png" alt="MudratDetector_0-1708705597098.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The attached .pdf file is output from build.&amp;nbsp; Maybe that helps too...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for looking in to this!&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 17:13:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589519#M9205</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-02-23T17:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589530#M9206</link>
      <description>&lt;P&gt;Seems like something is really off with your setup. Based on the log it's not only about &lt;FONT face="courier new,courier"&gt;unordered_map&lt;/FONT&gt;, it's not able to find such basic things as&amp;nbsp;&lt;FONT face="courier new,courier"&gt;fabs&lt;/FONT&gt;. As a last resort I would try to reinstall/repair Visual Studio 2019 to see if it solves the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 17:37:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589530#M9206</guid>
      <dc:creator>Viktor Kovacs</dc:creator>
      <dc:date>2024-02-23T17:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589532#M9207</link>
      <description>&lt;P&gt;Thanks for the quick reply Viktor.&amp;nbsp; I will give that a go later this afternoon...&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 17:48:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589532#M9207</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-02-23T17:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589932#M9213</link>
      <description>&lt;P&gt;To all who are interested,&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;ArchiCAD 27 | Win 10 | VS 2019, Tool Set v142&lt;BR /&gt;.&lt;/P&gt;
&lt;P&gt;- - created a virtual machine on my box with Hyper-V&lt;/P&gt;
&lt;P&gt;- - installed VS 2019&lt;/P&gt;
&lt;P&gt;- - installed ArchiCAD 27&lt;/P&gt;
&lt;P&gt;- - installed API Development Kit 27.3001&lt;/P&gt;
&lt;P&gt;- - installed Python 3.11.8 with 'include in PATH' option&lt;/P&gt;
&lt;P&gt;- - archived current version of Add-On project&lt;/P&gt;
&lt;P&gt;- - clone this git repo with the command, for latest CMake template files:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;git clone https://github.com/GRAPHISOFT/archicad-addon-cmake.git --recurse-submodules&lt;/LI-CODE&gt;
&lt;P&gt;- - copy all previous source code from archive files into current project&lt;/P&gt;
&lt;P&gt;- - verify&amp;nbsp;&lt;STRONG&gt;#include "ACAPI_MigrationHeader.hpp"&lt;/STRONG&gt; is in all .cpp files that I add to the project.&lt;/P&gt;
&lt;P&gt;- - build&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The build failed with output as documented in the attached .pdf file. These errors are similar to the previous errors except they start in APICommon.c with what seems to be pretty standard stuff, for example ..\GSRoot\StandardTypeTraits.hpp, before the errors areonce again found in&amp;nbsp;unordered_map.&amp;nbsp; It appears that a clean install if Visual Studio does not remedy these seemingly typical, boiler plate type issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All questions, observations, or comments are welcomed. Many thanks to all that have helped and continue to help with this.&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 23:05:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589932#M9213</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-02-26T23:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589952#M9214</link>
      <description>&lt;P&gt;*please note edits and revisions to the previous post that I have made off and on throughout this afternoon.&lt;/P&gt;
&lt;P&gt;It's the final version, I promise...&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 23:08:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/589952#M9214</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-02-26T23:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/590031#M9217</link>
      <description>&lt;P&gt;Are your &lt;STRONG&gt;APICommon.c/h&lt;/STRONG&gt; coming from your archived Add-On version? I assume you got them from some example projects.&lt;BR /&gt;This file changed quite a bit between API versions, so it might be worth considering updating it by copying a version from the example projects of the 27 API DevKit. Or if you don't need any function from the &lt;STRONG&gt;APICommon.c/h&lt;/STRONG&gt; you can also get rid of it, or only extract the function you need. These 2 file are not necessary for an Add-On.&lt;BR /&gt;&lt;BR /&gt;If you press F12 in Visual Studio on ACAPinc.h, you get the AC27 version right?&lt;BR /&gt;&lt;BR /&gt;Other then those suggestions/questions I'm running out of ideas.&lt;BR /&gt;&lt;BR /&gt;The last resort would be for you to provide us a skeleton version of your Add-On. So remove all code from your Add-On that is proprietary to your project but leave the typical Add-On stuff in and maybe just one dummy menu item. See if you get the same errors, and if you still do, we could try and debug the issue on our machines.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 08:38:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/590031#M9217</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2024-02-27T08:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/590125#M9218</link>
      <description>&lt;P&gt;Hey Bernd,&lt;/P&gt;
&lt;P&gt;Thanks for the continued attention to this little glitch I am experiencing.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Reminder:&lt;/U&gt;&amp;nbsp; The only difference with this and one other project is source code from multiple subdirectories&amp;nbsp; in ..\Src\ has been moved into ..\Src\ for the sake of easy CMake configuration.&amp;nbsp; And all of the '..\' from #include have been removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"Are your&amp;nbsp;&lt;STRONG&gt;APICommon.c/h&lt;/STRONG&gt;&amp;nbsp;coming from your archived Add-On version?"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I have copied APICommon.c/h and APIinc.h from ..\API Development Kit 27.3001\Examples\&amp;nbsp; projects.&lt;/P&gt;
&lt;P&gt;In my project, they are placed in the ..\Src\ folder, similar to projects in the ..\API Development Kit 27.3001\Examples\ folder.&lt;/P&gt;
&lt;P&gt;The ones I am using are time stamped 8/14/2023 4:00PM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"If you press F12 in Visual Studio on ACAPinc.h, you get the AC27 version right?"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes.&amp;nbsp; I get the one from the ..\Src\ folder in my project.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"The last resort would be for you to provide us a skeleton version of your Add-On. So remove all code from your Add-On that is proprietary to your project but leave the typical Add-On stuff in and maybe just one dummy menu item. See if you get the same errors, and if you still do, we could try and debug the issue on our machines."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I started doing that yesterday afternoon and will continue with that exercise today.&amp;nbsp; I may also start a new Add-On that does not copy anything from previous projects.&amp;nbsp; I have one in mind that has been on the drawing boards for a bit.&amp;nbsp; As a last resort, I can bundle up a slimmed down version of what I am struggling with over here.&amp;nbsp; I appreciate the offer of collaboration.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Update:&lt;/U&gt;&amp;nbsp; I have started a new Add-On and have achieved a successful build.&amp;nbsp; The function of the Add-On is to provide a menu choice that, when selected, confirms that selection with a dialog.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;GSErrCode	__ACENV_CALL	MenuCommandHandler(const API_MenuParams* params)
{
	return ACAPI_CallUndoableCommand("JHP_ProjectType Menu Command", [&amp;amp;]() -&amp;gt; GSErrCode {
		switch (params-&amp;gt;menuItemRef.menuResID)
		{
			case JHP_PROJECTTYPE_MENU_STRINGSID:
				switch (params-&amp;gt;menuItemRef.itemIndex)
				{
					case 1:
						JHP_ProjectType();
						break;
				}
				break;
		}
		return NoError;
	});
}

void JHP_ProjectType() {
	ACAPI_WriteReport("JHP_ProjectType", true);
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All the best,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 16:37:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/590125#M9218</guid>
      <dc:creator>MudratDetector</dc:creator>
      <dc:date>2024-02-27T16:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: unordered_map, APIinc.h and errors</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/590367#M9226</link>
      <description>&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the error list in the pdf file, I noticed that compiler can't find definitions of some types like&amp;nbsp;UInt16,&amp;nbsp;USize and so on. They are all defined in&amp;nbsp; Definitions.hpp (usually in C:\Program Files\Graphisoft\API Development Kit 27.3001\Support\Modules\GSRoot) So, check if that header file is included in your source file and the compiler can find it. Also, try to use the namespace w/those types (GS::UInt16, GS::USize) and see if you still get errors.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 21:19:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/unordered-map-APIinc-h-and-errors/m-p/590367#M9226</guid>
      <dc:creator>kolioi</dc:creator>
      <dc:date>2024-02-28T21:19:48Z</dc:date>
    </item>
  </channel>
</rss>

