<?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[M5Core2 Arduino compiles sketch PlatformIO does not]]></title><description><![CDATA[<p dir="auto">Hi I have a nice webradio sketch that compiles fine with Arduino,<br />
I have imported it into VSCode/PlatformIO, and installed the same libraries/versions that I used in Arduino (M5Core2.h and ESP8266.h) but VS code shows a compilation error saying something like:<br />
"lib/M5Core2/src/M5Display.h:117:12: error: 'vector' in namespace 'std' does not name a template type..."<br />
I tried to #include vector.h but it doesn't help?<br />
How come it compiles in Arduino and not in VSCode/Platformio?</p>
]]></description><link>https://community.m5stack.com/topic/4247/m5core2-arduino-compiles-sketch-platformio-does-not</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 08:43:30 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4247.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Apr 2022 12:40:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Core2 Arduino compiles sketch PlatformIO does not on Thu, 28 Apr 2022 16:53:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a><br />
OK thanks, I will try to look into this, I have the impression that it might be due to a different compiler. By the way do you know if it is possible to convert the arduino sketch into code that can be compiled with classical gc++<br />
Thanks</p>
]]></description><link>https://community.m5stack.com/post/17319</link><guid isPermaLink="true">https://community.m5stack.com/post/17319</guid><dc:creator><![CDATA[dave17]]></dc:creator><pubDate>Thu, 28 Apr 2022 16:53:19 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core2 Arduino compiles sketch PlatformIO does not on Thu, 28 Apr 2022 11:37:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/19456">@dave17</a></p>
<p dir="auto">sorry, I don't know why this still doesn't compile when using PlatformIO, sorry. Maybe <a href="https://github.com/earlephilhower/ESP8266Audio/issues/440" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> helps.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17318</link><guid isPermaLink="true">https://community.m5stack.com/post/17318</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 28 Apr 2022 11:37:24 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core2 Arduino compiles sketch PlatformIO does not on Thu, 28 Apr 2022 09:44:08 GMT]]></title><description><![CDATA[<p dir="auto">Thank-you Felix,<br />
that was helpful, that bit now compiles but I run into another compiling error raised by the ESP8266 libray:<br />
"In file included from .pio/libdeps/m5stack-core2/ESP8266Audio/src/AudioGeneratorMIDI.cpp:65:<br />
.pio/libdeps/m5stack-core2/ESP8266Audio/src/libtinysoundfont/tsf.h: In function 'void tsf_channel_midi_control(tsf*, int, int, int)':<br />
.pio/libdeps/m5stack-core2/ESP8266Audio/src/libtinysoundfont/tsf.h:2100:1: error: insn does not satisfy its constraints:"<br />
Again I don't understand why it does not compile in my VSCode/Platformio frame while it compiles fine in Arduino when I'm using the same version for the M5Core2 and ESP8266Audio libraries.<br />
Does it have to do with the c++ compiler? Is it different between the 2 do the libraries have to be adapted to Platformio even if the have the same version number?<br />
Thanks for your help.</p>
]]></description><link>https://community.m5stack.com/post/17317</link><guid isPermaLink="true">https://community.m5stack.com/post/17317</guid><dc:creator><![CDATA[dave17]]></dc:creator><pubDate>Thu, 28 Apr 2022 09:44:08 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core2 Arduino compiles sketch PlatformIO does not on Wed, 27 Apr 2022 17:13:31 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/19456">@dave17</a></p>
<p dir="auto">that is an odd one. Try including <code>vector</code> (w/o the <code>.h</code>) like this:</p>
<pre><code>#include &lt;vector&gt;
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/17313</link><guid isPermaLink="true">https://community.m5stack.com/post/17313</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 27 Apr 2022 17:13:31 GMT</pubDate></item></channel></rss>