<?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 Linker error in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545905#M9447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by OXO on Sun Jul 24 08:23:08 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I expect I am being a bit dim, but it's sunday and I'm tired..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me what's causing these linker errors?&lt;/SPAN&gt;&lt;BR /&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/lib/thumb2\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sbrkr.c:(.text+0x12): undefined reference to `_sbrk'&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/lib/thumb2\libc.a(lib_a-writer.o): In function `_write_r':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;writer.c:(.text+0x16): undefined reference to `_write'&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/lib/thumb2\libc.a(lib_a-closer.o): In function `_close_r':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;closer.c:(.text+0x12): undefined reference to `_close'&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/lib/thumb2\libc.a(lib_a-fstatr.o): In function `_fstat_r':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fstatr.c:(.text+0x14): undefined reference to `_fstat'&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/lib/thumb2\libc.a(lib_a-isattyr.o):&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:55:13 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:55:13Z</dc:date>
    <item>
      <title>Linker error</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545905#M9447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by OXO on Sun Jul 24 08:23:08 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I expect I am being a bit dim, but it's sunday and I'm tired..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me what's causing these linker errors?&lt;/SPAN&gt;&lt;BR /&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/lib/thumb2\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sbrkr.c:(.text+0x12): undefined reference to `_sbrk'&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/lib/thumb2\libc.a(lib_a-writer.o): In function `_write_r':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;writer.c:(.text+0x16): undefined reference to `_write'&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/lib/thumb2\libc.a(lib_a-closer.o): In function `_close_r':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;closer.c:(.text+0x12): undefined reference to `_close'&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/lib/thumb2\libc.a(lib_a-fstatr.o): In function `_fstat_r':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fstatr.c:(.text+0x14): undefined reference to `_fstat'&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/lib/thumb2\libc.a(lib_a-isattyr.o):&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545905#M9447</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Linker error</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545906#M9448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Jul 24 08:33:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like newlib printf problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:55:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545906#M9448</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linker error</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545907#M9449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by aco31 on Fri Mar 30 15:47:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi OXO,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have same issue...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arm-none-eabi-c++ -mcpu=cortex-m3 -mthumb -o"monitorTemp"&amp;nbsp; ./src/adc.o ./src/cr_startup_lpc17.o ./src/leds.o ./src/main.o&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c:/nxp/lpcxpresso_4.1.0_190/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 0000800c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./src/cr_startup_lpc17.o: In function `ResetISR':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\alain\ARM_LPCXPRESSO\workSpace\monitorTemp\Debug/../src/cr_startup_lpc17.c:234: undefined reference to `_data'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\alain\ARM_LPCXPRESSO\workSpace\monitorTemp\Debug/../src/cr_startup_lpc17.c:234: undefined reference to `_data'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\alain\ARM_LPCXPRESSO\workSpace\monitorTemp\Debug/../src/cr_startup_lpc17.c:254: undefined reference to `SystemInit'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\alain\ARM_LPCXPRESSO\workSpace\monitorTemp\Debug/../src/cr_startup_lpc17.c:266: undefined reference to `__main'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./src/cr_startup_lpc17.o: In function `IntDefaultHandler':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\alain\ARM_LPCXPRESSO\workSpace\monitorTemp\Debug/../src/cr_startup_lpc17.c:363: undefined reference to `_bss'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\alain\ARM_LPCXPRESSO\workSpace\monitorTemp\Debug/../src/cr_startup_lpc17.c:363: undefined reference to `_ebss'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;./src/cr_startup_lpc17.o:(.isr_vector+0x0): undefined reference to `_vStackTop'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:55:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545907#M9449</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Linker error</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545908#M9450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Mon Apr 02 01:47:22 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;acordat - you are not seeing the same problem as OXO was. OXO's problem looks like it was related to the C library variant being linked to, as per:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/UndefinedReference&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However the errors you are seeing do not appear to be C library related. They largely appear to be related to symbols not being defined that are provided by the linker script that LPCXpresso will normally autogenerate for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It also appears that you are trying to create a C++ project, which the LPCXpresso IDE does not support doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please can you explain exactly how you created the project that you are trying to build here? The normal way to create a project in LPCXpresso is to use the project wizard provided by the Quickstart view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:55:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Linker-error/m-p/545908#M9450</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:55:15Z</dc:date>
    </item>
  </channel>
</rss>

