<?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: Getting a linker error while building a project using arm-none-eabi-g++ in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1892105#M56288</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221349"&gt;@sushmasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For better help you , please share your project. I help you check it on my side. thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 11:35:14 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-06-21T11:35:14Z</dc:date>
    <item>
      <title>Getting a linker error while building a project using arm-none-eabi-g++</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1890708#M56278</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I am seeing a linker error while building the code using C++ compiler "arm-none-eabi-g++"&lt;/P&gt;&lt;P&gt;Let me add little details, I have an existing project which has only C source files, but now I have created a new source file which is C++ based. Previously I used to build the code using "arm-none-eabi-gcc" C compiler, but after adding the new source file I have changed the compiler option to "arm-none-eabi-g++".&lt;/P&gt;&lt;P&gt;Surprisingly I am seeing many linker errors, adding one example error message here,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;undefined reference to `sprintf(char*, char const*, ...)'&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Even though sprintf was used in many source files, but this error shown in few source files.&lt;/P&gt;&lt;P&gt;I was able to build the code (before adding C++ source file) using&amp;nbsp;"arm-none-eabi-gcc" option, but the error was seen only while building the code using&amp;nbsp;"arm-none-eabi-g++" compiler command.&lt;/P&gt;&lt;P&gt;Can someone please let me know, what is going on here?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 19:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1890708#M56278</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2024-06-19T19:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a linker error while building a project using arm-none-eabi-g++</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1892105#M56288</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221349"&gt;@sushmasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For better help you , please share your project. I help you check it on my side. thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 11:35:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1892105#M56288</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-06-21T11:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a linker error while building a project using arm-none-eabi-g++</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1895981#M56330</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Few observations.&lt;/P&gt;&lt;P&gt;The existing project is created as a C project, but now I have added a .cpp source file to that project.&lt;/P&gt;&lt;P&gt;The existing project uses gcc compiler for building the code, where as after adding new .cpp file, I changed the compiler to g++ for building the code. That's when I saw the issue.&lt;/P&gt;&lt;P&gt;Please let me know, based on the above inputs, can you able to provide any pointers?&lt;/P&gt;&lt;P&gt;I am sorry, I can't share the project as it contains the confidential source code.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;San&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 14:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1895981#M56330</guid>
      <dc:creator>sushmasan</dc:creator>
      <dc:date>2024-06-28T14:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a linker error while building a project using arm-none-eabi-g++</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1902096#M56413</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221349"&gt;@sushmasan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the error message, it seems the lib you used doesn't support&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;sprintf(char*, char const*, ...)'.&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;It is recommend to replace the library. Some libraries only support C. About libraries description, please refer to "19.7 Libraries and linker scripts" of &amp;lt;MCUXpresso_ide_User guide&amp;gt;. I attach it for you.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or do not use like print.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1720433388510.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/287514iDD6D74AB476CE96E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1720433388510.png" alt="Alice_Yang_0-1720433388510.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 10:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Getting-a-linker-error-while-building-a-project-using-arm-none/m-p/1902096#M56413</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-07-08T10:16:00Z</dc:date>
    </item>
  </channel>
</rss>

