<?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: std::vector in S32 &amp; EWL in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882006#M4634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you set the C++ dialect to C++11 in project properties/settings?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63860i9D9213DD1DDEEF7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2019 15:15:06 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2019-01-18T15:15:06Z</dc:date>
    <item>
      <title>std::vector in S32 &amp; EWL</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882005#M4633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a strange problem. As soon as I start using a std::vector, I get a link error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code is a simple S32 C++/EWL project:&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;vector&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counterclass &lt;SPAN class="token class-name"&gt;myccounter&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; xcptn_xmpl &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/* Configure and Enable Interrupts */&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; std&lt;SPAN class="operator token"&gt;::&lt;/SPAN&gt;vector&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; a&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; a&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;push_back&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/* Loop forever */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myccounter&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;increment&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It is the main generated by the S32 wizard (I am not even setting the C++ dialect). If I try to compile this code I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Building target: cpp_stl_Z7_0.elf&lt;BR /&gt;Executing target #8 cpp_stl_Z7_0.elf&lt;BR /&gt;Invoking: Standard S32DS C++ Linker&lt;BR /&gt;powerpc-eabivle-g++ -o "cpp_stl_Z7_0.elf" "@cpp_stl_Z7_0.args"&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;./src/main.o: In function `std::tr1::detail::shared_ptr_deleter&amp;lt;char, std::detail::default_delete&amp;lt;char []&amp;gt;, std::allocator&amp;lt;void&amp;gt; &amp;gt;::get_deleter(std::type_info const&amp;amp;) const':&lt;BR /&gt;/home/fab/Applications/NXP/S32DS_Power_v2017.R1/S32DS/e200_ewl2/EWL_C++/include/ewl_smart_pointers:1322: undefined reference to `std::type_info::operator==(std::type_info const&amp;amp;) const'&lt;BR /&gt;makefile:70: recipe for target 'cpp_stl_Z7_0.elf' failed&lt;BR /&gt;collect2: error: ld returned 1 exit status&lt;BR /&gt;make: *** [cpp_stl_Z7_0.elf] Error 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I forgetting a library setting somewhere?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 17:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882005#M4633</guid>
      <dc:creator>fab1</dc:creator>
      <dc:date>2019-01-17T17:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: std::vector in S32 &amp; EWL</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882006#M4634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you set the C++ dialect to C++11 in project properties/settings?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63860i9D9213DD1DDEEF7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 15:15:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882006#M4634</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-01-18T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: std::vector in S32 &amp; EWL</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882007#M4635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately yes, I tried with both C++98 and C++11. The error is the same in all cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 17:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882007#M4635</guid>
      <dc:creator>fab1</dc:creator>
      <dc:date>2019-01-18T17:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: std::vector in S32 &amp; EWL</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882008#M4636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Fabrizio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try to set &lt;STRONG&gt;_EWL_NO_RTTI&amp;nbsp;&lt;/STRONG&gt;define in the project settings?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63790i8ED16A65B73B176C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp;But i suggest you to use the newlib instead of ewl:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63864i41587004B5938E12/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 22:27:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882008#M4636</guid>
      <dc:creator>b48014</dc:creator>
      <dc:date>2019-01-18T22:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: std::vector in S32 &amp; EWL</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882009#M4637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dmitry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! That solved the problem in the little example I had.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would gladly switch to Newlib if I could solve the UART problem. Our application uses the UART to exchange data with a PC. If I compile with Newlib enabled (any of the variations), I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;make -j8 all &lt;BR /&gt;Building file: ../src/hardware/board_axiom.cpp&lt;BR /&gt;Building file: ../src/hardware/uart/uart.c&lt;BR /&gt;Building file: ../src/hardware/uart/uart_console_io.c&lt;BR /&gt;Executing target #3 ../src/hardware/board_axiom.cpp&lt;BR /&gt;Executing target #12 ../src/hardware/uart/uart.c&lt;BR /&gt;Executing target #13 ../src/hardware/uart/uart_console_io.c&lt;BR /&gt;Invoking: Standard S32DS C Compiler&lt;BR /&gt;Invoking: Standard S32DS C++ Compiler&lt;BR /&gt;powerpc-eabivle-gcc "@src/hardware/uart/uart.args" -MMD -MP -MF"src/hardware/uart/uart.d" -MT"src/hardware/uart/uart.o" -c -o "src/hardware/uart/uart.o" "../src/hardware/uart/uart.c"&lt;BR /&gt;powerpc-eabivle-g++ "@src/hardware/board_axiom.args" -MMD -MP -MF"src/hardware/board_axiom.d" -MT"src/hardware/board_axiom.o" -c -o "src/hardware/board_axiom.o" "../src/hardware/board_axiom.cpp"&lt;BR /&gt;Invoking: Standard S32DS C Compiler&lt;BR /&gt;powerpc-eabivle-gcc "@src/hardware/uart/uart_console_io.args" -MMD -MP -MF"src/hardware/uart/uart_console_io.d" -MT"src/hardware/uart/uart_console_io.o" -c -o "src/hardware/uart/uart_console_io.o" "../src/hardware/uart/uart_console_io.c"&lt;BR /&gt;../src/hardware/uart/uart_console_io.c:22:0: warning: ignoring #pragma ANSI_strict off [-Wunknown-pragmas]&lt;BR /&gt;&amp;nbsp;#pragma ANSI_strict off /* _No_Console will be empty file */&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;src/hardware/uart/subdir.mk:47: recipe for target 'src/hardware/uart/uart_console_io.o' failed&lt;BR /&gt;../src/hardware/uart/uart_console_io.c:24:24: fatal error: ansi_parms.h: No such file or directory&lt;BR /&gt;&amp;nbsp;#include &amp;lt;ansi_parms.h&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;BR /&gt;compilation terminated.&lt;BR /&gt;make: *** [src/hardware/uart/uart_console_io.o] Error 1&lt;BR /&gt;make: *** Waiting for unfinished jobs....&lt;BR /&gt;../src/hardware/uart/uart.c: In function 'InitializeUART':&lt;BR /&gt;../src/hardware/uart/uart.c:175:0: warning: ignoring #pragma unused&amp;nbsp; [-Wunknown-pragmas]&lt;BR /&gt;&amp;nbsp;#pragma unused(baudRate)&lt;BR /&gt;&amp;nbsp;^&lt;BR /&gt;Finished building: ../src/hardware/uart/uart.c&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Finished building: ../src/hardware/board_axiom.cpp&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that "uart_console_io.h" from the EWL library. So, that's probably not correct. Do you happen to know if there is a substitute for that file in Newlib?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 23:06:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882009#M4637</guid>
      <dc:creator>fab1</dc:creator>
      <dc:date>2019-01-18T23:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: std::vector in S32 &amp; EWL</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882010#M4638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi&amp;nbsp;Fabrizio,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;As far as I can see,&amp;nbsp;&lt;SPAN&gt;uart_console_io.c&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;is used&amp;nbsp;to support&amp;nbsp;MetroTRK UART library&amp;nbsp;interface. I don't think that there's any substitute &lt;SPAN&gt;for that file in Newlib.&amp;nbsp;&lt;/SPAN&gt;So use EWL library and&amp;nbsp;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;_EWL_NO_RTTI&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;define&lt;/SPAN&gt;, if you really want to use this &lt;SPAN&gt;MetroTRK&amp;nbsp;support&lt;/SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Dmitry&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2019 22:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882010#M4638</guid>
      <dc:creator>b48014</dc:creator>
      <dc:date>2019-01-20T22:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: std::vector in S32 &amp; EWL</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882011#M4639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your help Dmitry! It was very much appreciated. I devised a workaround for this problem that solves all my problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, now I have another problem with a DMA setup for the UART on the 5676R. I have just posted the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 23:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/std-vector-in-S32-EWL/m-p/882011#M4639</guid>
      <dc:creator>fab1</dc:creator>
      <dc:date>2019-01-21T23:34:43Z</dc:date>
    </item>
  </channel>
</rss>

