<?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 malloc.h vs Redlib in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/malloc-h-vs-Redlib/m-p/594756#M31095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Marco72 on Mon Nov 21 22:57:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Using LPCXpresso v4.0.5 [Build 123] [27/06/2011] with a LPC1769 rev b board I encountered a problem when in my code i write this include&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#include &amp;lt;malloc.h&amp;gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if I switch to newlib the problem disappears.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Follow the last stage of fail build from console window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Building file: ../src/main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Invoking: MCU C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC17xx -I"C:\Documenti\Progetti\Miei\LPC expresso\USB\Test\CMSISv2p00_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/main.d" -MT"src/main.d" -o"src/main.o" "../src/main.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In file included from ../src/main.c:24:0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c:\nxp\lpcxpresso_4.0.5_123\lpcxpresso\tools\bin\../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/include/malloc.h:4:29: error: no include path in which to search for malloc.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: *** [src/main.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To understand what happen I made a completely new LPCXpresso empty project using the provided wizard and this is always the behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where is my error ?&amp;nbsp; Does malloc.h is supported in Redlib ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at include path I am a bit confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In project tree I see under the includes branch some .h yellow folders (where path is within lpcxpresso installation include folders) and an other violet folder that is derived from my project setting. How these paths are managed during build process? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:30:31 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:30:31Z</dc:date>
    <item>
      <title>malloc.h vs Redlib</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/malloc-h-vs-Redlib/m-p/594756#M31095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Marco72 on Mon Nov 21 22:57:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Using LPCXpresso v4.0.5 [Build 123] [27/06/2011] with a LPC1769 rev b board I encountered a problem when in my code i write this include&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#include &amp;lt;malloc.h&amp;gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if I switch to newlib the problem disappears.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Follow the last stage of fail build from console window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Building file: ../src/main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Invoking: MCU C Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC17xx -I"C:\Documenti\Progetti\Miei\LPC expresso\USB\Test\CMSISv2p00_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/main.d" -MT"src/main.d" -o"src/main.o" "../src/main.c"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In file included from ../src/main.c:24:0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c:\nxp\lpcxpresso_4.0.5_123\lpcxpresso\tools\bin\../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/include/malloc.h:4:29: error: no include path in which to search for malloc.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: *** [src/main.o] Error 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To understand what happen I made a completely new LPCXpresso empty project using the provided wizard and this is always the behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where is my error ?&amp;nbsp; Does malloc.h is supported in Redlib ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at include path I am a bit confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In project tree I see under the includes branch some .h yellow folders (where path is within lpcxpresso installation include folders) and an other violet folder that is derived from my project setting. How these paths are managed during build process? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/malloc-h-vs-Redlib/m-p/594756#M31095</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: malloc.h vs Redlib</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/malloc-h-vs-Redlib/m-p/594757#M31096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ecw on Tue Nov 22 02:57:28 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ignore it.&amp;nbsp; Use stdlib.h instead.&amp;nbsp; malloc.h is deprecated, and disappearing from many systems. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:30:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/malloc-h-vs-Redlib/m-p/594757#M31096</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:30:31Z</dc:date>
    </item>
  </channel>
</rss>

