<?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: Add C++ library in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Add-C-library/m-p/1319924#M15708</link>
    <description>&lt;P&gt;Found the solution after all.&lt;/P&gt;&lt;P&gt;In C/C++ General - Path and Symbols add the &lt;STRONG&gt;source locations&lt;/STRONG&gt; (in my case I added a link "libraries")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bp1979_0-1628325361204.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/152202iF327CF47465D909A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bp1979_0-1628325361204.png" alt="bp1979_0-1628325361204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After that, add the includes that the library needs (how are the headers included, which paths do they expect)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bp1979_2-1628325538658.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/152204i8586AB12CCF1BAF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bp1979_2-1628325538658.png" alt="bp1979_2-1628325538658.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't know how the library is expect headers to be organized. Just compile, and go to your first error and look for the first header which can't be found. Make that path available, and repeat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 07 Aug 2021 08:43:36 GMT</pubDate>
    <dc:creator>bp1979</dc:creator>
    <dc:date>2021-08-07T08:43:36Z</dc:date>
    <item>
      <title>Add C++ library</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Add-C-library/m-p/1319679#M15698</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having a hard time achieving trivial stuff in MCUXpresso. Forgive my stupidity.&lt;/P&gt;&lt;P&gt;I have created a project for my RT 1020 EVK board. Compiles. All fine. I also restructured memory.(DTC 128K, ITC 64K, OC 64K) Irrelevant to this question. Again, compiles, runs. All good.&lt;/P&gt;&lt;P&gt;Then, I have my own port of FreeRTOS I take from another project. I want to keep it. I don't want to generate a project with FreeRTOS enabled. I want to use "only my own code".&lt;/P&gt;&lt;P&gt;So I copied in all sources into [project]\libraries\FreeRTOS.&lt;/P&gt;&lt;P&gt;I added the include paths in project settings/C/C++ Build/Settings/Includes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bp1979_0-1628248151711.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/152136i807008B9E6326A0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bp1979_0-1628248151711.png" alt="bp1979_0-1628248151711.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Added some code to test if all compiles well:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;extern "C"
{
	#include &amp;lt;stdio.h&amp;gt;
	#include "board.h"
	#include "peripherals.h"
	#include "pin_mux.h"
	#include "clock_config.h"
	#include "MIMXRT1021.h"

	#include "FreeRTOS.h"
	#include "task.h"
}

void Test(void *vParameters)
{

}

/*
 * @brief   Application entry point.
 */
int main(void) {

    /* Init board hardware. */
    BOARD_ConfigMPU();
    BOARD_InitBootPins();
    BOARD_InitBootClocks();
    BOARD_InitBootPeripherals();

    xTaskCreate(
    		Test,
			"bla",
			100,
			nullptr,
			1,
			nullptr);

    while(1) {}

    return 0 ;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And compile my project:&lt;/P&gt;&lt;P&gt;C:\Users\baprins\Documents\MCUXpressoIDE_11.3.1_5262\workspace\iobox\Debug/../source/iobox.cpp:64: undefined reference to `xTaskCreate'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have googled, and googled, I don't want to make separate libraries, I just want to compile this as one project and go...&lt;/P&gt;&lt;P&gt;Can you please help me?&lt;/P&gt;&lt;P&gt;I added the project to this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 11:12:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Add-C-library/m-p/1319679#M15698</guid>
      <dc:creator>bp1979</dc:creator>
      <dc:date>2021-08-06T11:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add C++ library</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Add-C-library/m-p/1319924#M15708</link>
      <description>&lt;P&gt;Found the solution after all.&lt;/P&gt;&lt;P&gt;In C/C++ General - Path and Symbols add the &lt;STRONG&gt;source locations&lt;/STRONG&gt; (in my case I added a link "libraries")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bp1979_0-1628325361204.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/152202iF327CF47465D909A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bp1979_0-1628325361204.png" alt="bp1979_0-1628325361204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After that, add the includes that the library needs (how are the headers included, which paths do they expect)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bp1979_2-1628325538658.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/152204i8586AB12CCF1BAF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bp1979_2-1628325538658.png" alt="bp1979_2-1628325538658.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't know how the library is expect headers to be organized. Just compile, and go to your first error and look for the first header which can't be found. Make that path available, and repeat.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2021 08:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Add-C-library/m-p/1319924#M15708</guid>
      <dc:creator>bp1979</dc:creator>
      <dc:date>2021-08-07T08:43:36Z</dc:date>
    </item>
  </channel>
</rss>

