<?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: undefined reference to operator new in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/undefined-reference-to-operator-new/m-p/854055#M1279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="314052" data-username="aaronminner" href="https://community.nxp.com/people/aaronminner"&gt;Aaron Minner&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;- First method，In MCUXpresso IDE, you also can create C++ project：&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/75805i34DB1E3FCDA854F7/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;- Second, please check which library your project used, the default lib of SDK demo use Redlib， this library doesn't&lt;/P&gt;&lt;P&gt;support C++. So change it to NewlibNano or Newlib:&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/75848iC8E10CFDCB891B2D/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;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2019 06:43:00 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-01-23T06:43:00Z</dc:date>
    <item>
      <title>undefined reference to operator new</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/undefined-reference-to-operator-new/m-p/854054#M1278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using MCUXpresso with SDK 2.5.0 for the K66 processor. &amp;nbsp;Started with a C project that I got to compile, link and execute on the hardware just fine. Added a C++ file to provide support for an external device (SI5351A clock chip). &amp;nbsp;Updated the build process, since it doesn't consider C++ files automatically. &amp;nbsp;Resolved the few syntax errors involved in calling C++ from C. &amp;nbsp;So far, so good. &amp;nbsp;However, in the link stage, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; ...&amp;nbsp;undefined reference to `operator new(unsigned int)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I follow the advice from the Internet and add "stdc++" to the link options, I get a list of errors related to exceptions. &amp;nbsp;If I try to add other linkage options to resolve those, I get additional errors. &amp;nbsp;I did clean the project at various stages and build fresh; doesn't seem to make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I overlooking&amp;nbsp;something in incorporating C++ from within a C project in MCUXpresso?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 21:00:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/undefined-reference-to-operator-new/m-p/854054#M1278</guid>
      <dc:creator>aaronminner</dc:creator>
      <dc:date>2019-01-22T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to operator new</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/undefined-reference-to-operator-new/m-p/854055#M1279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="314052" data-username="aaronminner" href="https://community.nxp.com/people/aaronminner"&gt;Aaron Minner&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;- First method，In MCUXpresso IDE, you also can create C++ project：&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/75805i34DB1E3FCDA854F7/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;- Second, please check which library your project used, the default lib of SDK demo use Redlib， this library doesn't&lt;/P&gt;&lt;P&gt;support C++. So change it to NewlibNano or Newlib:&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/75848iC8E10CFDCB891B2D/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;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 06:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/undefined-reference-to-operator-new/m-p/854055#M1279</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-01-23T06:43:00Z</dc:date>
    </item>
  </channel>
</rss>

