<?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>MCUXpresso IDEのトピックRe: Include standard library function definitions in static library</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Include-standard-library-function-definitions-in-static-library/m-p/1665810#M9026</link>
    <description>these functions like malloc() are part of the C/C++ standard library. You will have to either combine your library with the standard library or link your Rust application with it too.</description>
    <pubDate>Thu, 08 Jun 2023 04:30:22 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2023-06-08T04:30:22Z</dc:date>
    <item>
      <title>Include standard library function definitions in static library</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Include-standard-library-function-definitions-in-static-library/m-p/1665367#M9025</link>
      <description>&lt;P&gt;Hi, I am creating a static library in MCUXpresso IDE. I am using redlib for importing `&lt;EM&gt;stdlib.h&lt;/EM&gt;` in my code. It successfully builds a static library. However, some of the standard library functions such as "&lt;EM&gt;malloc&lt;/EM&gt;", "&lt;EM&gt;exit&lt;/EM&gt;" are undefined in the static library. I verified that using `&lt;EM&gt;nm&lt;/EM&gt;` command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I plan to use this static library in rust using ffi. And when I try to load the static library in my rust code I get error `&lt;EM&gt;rust-lld: error: undefined symbol: malloc&lt;/EM&gt;`. How can I include these definitions in my static library?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 17:52:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Include-standard-library-function-definitions-in-static-library/m-p/1665367#M9025</guid>
      <dc:creator>tarun1</dc:creator>
      <dc:date>2023-06-07T17:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Include standard library function definitions in static library</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Include-standard-library-function-definitions-in-static-library/m-p/1665810#M9026</link>
      <description>these functions like malloc() are part of the C/C++ standard library. You will have to either combine your library with the standard library or link your Rust application with it too.</description>
      <pubDate>Thu, 08 Jun 2023 04:30:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Include-standard-library-function-definitions-in-static-library/m-p/1665810#M9026</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-06-08T04:30:22Z</dc:date>
    </item>
  </channel>
</rss>

