<?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 __errno in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/undefined-reference-to-errno/m-p/1496322#M20830</link>
    <description>&lt;P&gt;I have solved this problem by moving from Redlib to Newlib.&lt;BR /&gt;The problem is difficult to create, on example projects i do not get the __errno issue.&lt;BR /&gt;Only on my final project, but i cannot share this easily.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2022 10:53:39 GMT</pubDate>
    <dc:creator>_bjs</dc:creator>
    <dc:date>2022-07-27T10:53:39Z</dc:date>
    <item>
      <title>undefined reference to __errno</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/undefined-reference-to-errno/m-p/1491715#M20688</link>
      <description>&lt;P&gt;Hello Please help:&lt;BR /&gt;&lt;BR /&gt;I Added -(l)m for functions as roundf, fmaxf,&amp;nbsp;&lt;BR /&gt;Now i am getting the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_bjs_0-1658226864973.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187130iC259A6A9F46AB6B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_bjs_0-1658226864973.png" alt="_bjs_0-1658226864973.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am not good with these side programming problems. What do i do to solve this?&lt;BR /&gt;&lt;BR /&gt;I have added the following, this did not help:&lt;/P&gt;&lt;P&gt;#include "errno.h"&lt;/P&gt;&lt;P&gt;#define errno (*__error())&lt;BR /&gt;extern int * __error(void);&lt;BR /&gt;&lt;BR /&gt;MCU linker is invoking:&lt;BR /&gt;arm-none-eabi-gcc -nostdlib -L"C:\Users\...&lt;BR /&gt;&lt;BR /&gt;I am not familiar with what correct invoking is, arm-none-eabi-gcc I have seen before.&lt;BR /&gt;&lt;BR /&gt;Is there some work around, adding some small-math-lib or something from github, anyone know?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 12:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/undefined-reference-to-errno/m-p/1491715#M20688</guid>
      <dc:creator>_bjs</dc:creator>
      <dc:date>2022-07-19T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to __errno</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/undefined-reference-to-errno/m-p/1496120#M20825</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199509"&gt;@_bjs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Can you give example code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 06:48:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/undefined-reference-to-errno/m-p/1496120#M20825</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2022-07-27T06:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to __errno</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/undefined-reference-to-errno/m-p/1496322#M20830</link>
      <description>&lt;P&gt;I have solved this problem by moving from Redlib to Newlib.&lt;BR /&gt;The problem is difficult to create, on example projects i do not get the __errno issue.&lt;BR /&gt;Only on my final project, but i cannot share this easily.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 10:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/undefined-reference-to-errno/m-p/1496322#M20830</guid>
      <dc:creator>_bjs</dc:creator>
      <dc:date>2022-07-27T10:53:39Z</dc:date>
    </item>
  </channel>
</rss>

