<?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>i.MX RT Crossover MCUsのトピックUndifined Reference error when using a Static library in a C project</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Undifined-Reference-error-when-using-a-Static-library-in-a-C/m-p/1467988#M19889</link>
    <description>&lt;P&gt;I build a CPP static library including &lt;STRONG&gt;FREERtos POSIX C files&lt;/STRONG&gt; and also some of my &lt;STRONG&gt;own CPP files with functions that use the included FREERtos POSIX functions itself&lt;/STRONG&gt;. (such as pthread_create ,&amp;nbsp;pthread_join etc.)&lt;/P&gt;&lt;P&gt;After building a .a static library I wish to use it in a C project.&lt;/P&gt;&lt;P&gt;In my executable project I included the static library and headers. When I call the functions that were in&amp;nbsp;&lt;STRONG&gt;FREERtos POSIX C files&amp;nbsp;(such as pthread_create ,&amp;nbsp;pthread_join etc.)&amp;nbsp;&lt;/STRONG&gt;through the project C file the program works perfectly.&lt;/P&gt;&lt;P&gt;But if I call the CPP functions that were in&amp;nbsp;my &lt;STRONG&gt;own CPP files that use the included FREERtos POSIX functions &lt;/STRONG&gt;it says&lt;STRONG&gt; Undefined Reference to&amp;nbsp;pthread_create,&amp;nbsp;pthread_join etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What is the reason for this error?&lt;/P&gt;&lt;P&gt;ps: I included the CPP files headers in the executable project including extern C tag.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 06:12:02 GMT</pubDate>
    <dc:creator>ViduraErandika</dc:creator>
    <dc:date>2022-06-02T06:12:02Z</dc:date>
    <item>
      <title>Undifined Reference error when using a Static library in a C project</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Undifined-Reference-error-when-using-a-Static-library-in-a-C/m-p/1467988#M19889</link>
      <description>&lt;P&gt;I build a CPP static library including &lt;STRONG&gt;FREERtos POSIX C files&lt;/STRONG&gt; and also some of my &lt;STRONG&gt;own CPP files with functions that use the included FREERtos POSIX functions itself&lt;/STRONG&gt;. (such as pthread_create ,&amp;nbsp;pthread_join etc.)&lt;/P&gt;&lt;P&gt;After building a .a static library I wish to use it in a C project.&lt;/P&gt;&lt;P&gt;In my executable project I included the static library and headers. When I call the functions that were in&amp;nbsp;&lt;STRONG&gt;FREERtos POSIX C files&amp;nbsp;(such as pthread_create ,&amp;nbsp;pthread_join etc.)&amp;nbsp;&lt;/STRONG&gt;through the project C file the program works perfectly.&lt;/P&gt;&lt;P&gt;But if I call the CPP functions that were in&amp;nbsp;my &lt;STRONG&gt;own CPP files that use the included FREERtos POSIX functions &lt;/STRONG&gt;it says&lt;STRONG&gt; Undefined Reference to&amp;nbsp;pthread_create,&amp;nbsp;pthread_join etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What is the reason for this error?&lt;/P&gt;&lt;P&gt;ps: I included the CPP files headers in the executable project including extern C tag.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 06:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Undifined-Reference-error-when-using-a-Static-library-in-a-C/m-p/1467988#M19889</guid>
      <dc:creator>ViduraErandika</dc:creator>
      <dc:date>2022-06-02T06:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Undifined Reference error when using a Static library in a C project</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Undifined-Reference-error-when-using-a-Static-library-in-a-C/m-p/1470238#M19988</link>
      <description>&lt;P&gt;Hi Vidura, i think that you have a error because&lt;/P&gt;&lt;P&gt;- You can get a reference error about pthread when pthread.h is missing in your C code.&lt;BR /&gt;- Another name for pthreads is POSIX threads.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I recommend to you an excellent blog which talks about freeRTOS and you can learn so much about this&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/tag/freertos/" target="_blank"&gt;https://mcuoneclipse.com/tag/freertos/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have a good day&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 01:13:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Undifined-Reference-error-when-using-a-Static-library-in-a-C/m-p/1470238#M19988</guid>
      <dc:creator>CarlosGarabito</dc:creator>
      <dc:date>2022-06-08T01:13:23Z</dc:date>
    </item>
  </channel>
</rss>

