<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Solved] &quot;#include &lt;M5Core2.h&gt;&quot; doesn&#x27;t compile]]></title><description><![CDATA[<p dir="auto">My code has the following with empty setup and loop:</p>
<p dir="auto"><code>#include &lt;M5Core2.h&gt;</code></p>
<p dir="auto">When I verify, it terminates with this:</p>
<p dir="auto"><code>c:\users\xxxxx xxxxx\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\allocator.h:46:10: fatal error: bits/c++allocator.h: No such file or directory</code></p>
<p dir="auto"><s>The file does exist in that location.</s> File doesn't exist in this location, but exists in other directories.</p>
<p dir="auto">I'm compiling this on a Core 2, using this guide:</p>
<blockquote>
<p dir="auto"><a href="https://docs.m5stack.com/en/quick_start/core2/arduino" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/quick_start/core2/arduino</a></p>
</blockquote>
<p dir="auto">So, what am I doing wrong?</p>
]]></description><link>https://community.m5stack.com/topic/4977/solved-include-m5core2-h-doesn-t-compile</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 00:35:24 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4977.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Jan 2023 19:03:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] &quot;#include &lt;M5Core2.h&gt;&quot; doesn&#x27;t compile on Fri, 13 Jan 2023 07:16:36 GMT]]></title><description><![CDATA[<p dir="auto">Well, it's working.</p>
<p dir="auto">The path to my Windows profile has a space in it. I created a local account without a space, and my empty program compiled with no issues. Don't know if that's the reason. Very strange.</p>
<p dir="auto">Makes me want to reinstall Ubuntu, or something.</p>
<p dir="auto">Thanks for the replies, Terry.</p>
]]></description><link>https://community.m5stack.com/post/19857</link><guid isPermaLink="true">https://community.m5stack.com/post/19857</guid><dc:creator><![CDATA[rh1972]]></dc:creator><pubDate>Fri, 13 Jan 2023 07:16:36 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] &quot;#include &lt;M5Core2.h&gt;&quot; doesn&#x27;t compile on Thu, 12 Jan 2023 22:05:13 GMT]]></title><description><![CDATA[<p dir="auto">Yeah, I'm using v2.0.3<br />
I installed the "M5Stack" boards, and then the "M5Core2" libraries, including dependencies. I've tried different versions of the boards.</p>
<p dir="auto">I'm I missing something obvious?</p>
]]></description><link>https://community.m5stack.com/post/19856</link><guid isPermaLink="true">https://community.m5stack.com/post/19856</guid><dc:creator><![CDATA[rh1972]]></dc:creator><pubDate>Thu, 12 Jan 2023 22:05:13 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] &quot;#include &lt;M5Core2.h&gt;&quot; doesn&#x27;t compile on Thu, 12 Jan 2023 21:38:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/32688">@rh1972</a> said in <a href="/post/19854">"#include &lt;M5Core2.h&gt;" doesn't compile</a>:</p>
<blockquote>
<p dir="auto">c++allocator.h</p>
</blockquote>
<p dir="auto">My recent install of Arduino V2.0.3 doesn't have c++allocator.h installed and I could not find it anywhere in my computer.</p>
<p dir="auto">So, yes! I agree there must be something else wrong.<br />
Are you using Arduino V2.0.3?</p>
]]></description><link>https://community.m5stack.com/post/19855</link><guid isPermaLink="true">https://community.m5stack.com/post/19855</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Thu, 12 Jan 2023 21:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] &quot;#include &lt;M5Core2.h&gt;&quot; doesn&#x27;t compile on Thu, 12 Jan 2023 21:32:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi, thanks for the reply.</p>
<p dir="auto">While writing my reply, I realised I misread the error. Arduino IDE cannot find "bits/c++allocator.h" which indeed doesn't exist in this directory. It exists in multiple different directories, though.</p>
<p dir="auto">I coped "c++allocator.h" into the path stated in my original post, and it got over this error. But, it's now missing another file.</p>
<p dir="auto">I could copy all these missing files (assuming there's more), but something seems to be wrong here.</p>
]]></description><link>https://community.m5stack.com/post/19854</link><guid isPermaLink="true">https://community.m5stack.com/post/19854</guid><dc:creator><![CDATA[rh1972]]></dc:creator><pubDate>Thu, 12 Jan 2023 21:32:43 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] &quot;#include &lt;M5Core2.h&gt;&quot; doesn&#x27;t compile on Thu, 12 Jan 2023 20:54:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi!<br />
I verify this simple code no problem.<br />
#include &lt;M5Core2.h&gt;<br />
void setup() {<br />
}<br />
void loop() {<br />
}<br />
Is this what you were talking about?<br />
-Terry</p>
]]></description><link>https://community.m5stack.com/post/19850</link><guid isPermaLink="true">https://community.m5stack.com/post/19850</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Thu, 12 Jan 2023 20:54:00 GMT</pubDate></item></channel></rss>