<?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中的主题 Project added code does not build - undefined reference to</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Project-added-code-does-not-build-undefined-reference-to/m-p/1484190#M8216</link>
    <description>&lt;P&gt;I am using MCUXpresso IDE v11.5.1 [Build 7266] [2022-04-13].&lt;/P&gt;&lt;P&gt;I added icludes path to "${workspace_loc:/${ProjName}/hd44780}"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Include paths.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185498iB420AEF49B935150/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Include paths.png" alt="Include paths.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I added source location to "WYS_HD44780\hd44780"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Source Location.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185499i758BE4E4715527F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Source Location.png" alt="Source Location.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;However, when building, I have a message undefined reference to...&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;What am I doing wrong ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Building target: WYS_HD44780.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"/home/badman/Programowanie/LPC1114_MCU/CMSIS_CORE_LPC11xx/Debug" -Xlinker -Map="WYS_HD44780.map" -Xlinker --cref -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m0 -mthumb -T "WYS_HD44780_Debug.ld" -o "WYS_HD44780.axf"  ./src/WYS_HD44780.o ./src/cr_startup_lpc11xx.o ./src/crp.o ./src/delay.o   -lCMSIS_CORE_LPC11xx
/usr/local/mcuxpressoide-11.5.1_7266/ide/plugins/com.nxp.mcuxpresso.tools.linux_11.5.1.202201181444/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: ./src/WYS_HD44780.o: in function `main':
Memory region         Used Size  Region Size  %age Used
        MFlash32:         672 B        32 KB      2.05%
         RamLoc8:          0 GB         8 KB      0.00%
/home/badman/Programowanie/LPC1114_MCU/WYS_HD44780/Debug/../src/WYS_HD44780.c:20: undefined reference to `lcd_init'
/usr/local/mcuxpressoide-11.5.1_7266/ide/plugins/com.nxp.mcuxpresso.tools.linux_11.5.1.202201181444/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: /home/badman/Programowanie/LPC1114_MCU/WYS_HD44780/Debug/../src/WYS_HD44780.c:21: undefined reference to `lcd_str'
collect2: error: ld returned 1 exit status
make[1]: *** [makefile:47: WYS_HD44780.axf] Błąd 1
make: *** [makefile:38: all] Błąd 2
"make -r -j3 all" terminated with exit code 2. Build might be incomplete.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 18:21:21 GMT</pubDate>
    <dc:creator>Badman</dc:creator>
    <dc:date>2022-07-04T18:21:21Z</dc:date>
    <item>
      <title>Project added code does not build - undefined reference to</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Project-added-code-does-not-build-undefined-reference-to/m-p/1484190#M8216</link>
      <description>&lt;P&gt;I am using MCUXpresso IDE v11.5.1 [Build 7266] [2022-04-13].&lt;/P&gt;&lt;P&gt;I added icludes path to "${workspace_loc:/${ProjName}/hd44780}"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Include paths.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185498iB420AEF49B935150/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Include paths.png" alt="Include paths.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I added source location to "WYS_HD44780\hd44780"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Source Location.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185499i758BE4E4715527F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Source Location.png" alt="Source Location.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;However, when building, I have a message undefined reference to...&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;What am I doing wrong ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Building target: WYS_HD44780.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"/home/badman/Programowanie/LPC1114_MCU/CMSIS_CORE_LPC11xx/Debug" -Xlinker -Map="WYS_HD44780.map" -Xlinker --cref -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m0 -mthumb -T "WYS_HD44780_Debug.ld" -o "WYS_HD44780.axf"  ./src/WYS_HD44780.o ./src/cr_startup_lpc11xx.o ./src/crp.o ./src/delay.o   -lCMSIS_CORE_LPC11xx
/usr/local/mcuxpressoide-11.5.1_7266/ide/plugins/com.nxp.mcuxpresso.tools.linux_11.5.1.202201181444/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: ./src/WYS_HD44780.o: in function `main':
Memory region         Used Size  Region Size  %age Used
        MFlash32:         672 B        32 KB      2.05%
         RamLoc8:          0 GB         8 KB      0.00%
/home/badman/Programowanie/LPC1114_MCU/WYS_HD44780/Debug/../src/WYS_HD44780.c:20: undefined reference to `lcd_init'
/usr/local/mcuxpressoide-11.5.1_7266/ide/plugins/com.nxp.mcuxpresso.tools.linux_11.5.1.202201181444/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: /home/badman/Programowanie/LPC1114_MCU/WYS_HD44780/Debug/../src/WYS_HD44780.c:21: undefined reference to `lcd_str'
collect2: error: ld returned 1 exit status
make[1]: *** [makefile:47: WYS_HD44780.axf] Błąd 1
make: *** [makefile:38: all] Błąd 2
"make -r -j3 all" terminated with exit code 2. Build might be incomplete.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 18:21:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Project-added-code-does-not-build-undefined-reference-to/m-p/1484190#M8216</guid>
      <dc:creator>Badman</dc:creator>
      <dc:date>2022-07-04T18:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Project added code does not build - undefined reference to</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Project-added-code-does-not-build-undefined-reference-to/m-p/1484412#M8217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your first screenshot doesn't include "src" path. please add it.&lt;/P&gt;
&lt;P&gt;Besides, I suggest you importing a lpcopen demo code, refer the demo code path settings to set your project path.&lt;/P&gt;
&lt;P&gt;If the problem persists, please upload your project here, thus we can check it directly.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 06:55:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Project-added-code-does-not-build-undefined-reference-to/m-p/1484412#M8217</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-07-05T06:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Project added code does not build - undefined reference to</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Project-added-code-does-not-build-undefined-reference-to/m-p/1484718#M8219</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I checked all the settings, it turned out that I deleted the file hd44780.c from the added folder hd44780.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The function prototypes were in the file hd44780.h and the functions were missing hence the&amp;nbsp;undefined reference message.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:15:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Project-added-code-does-not-build-undefined-reference-to/m-p/1484718#M8219</guid>
      <dc:creator>Badman</dc:creator>
      <dc:date>2022-07-05T14:15:37Z</dc:date>
    </item>
  </channel>
</rss>

