<?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 undefined reference to &amp;lt;function&amp;gt; in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-lt-function-gt/m-p/382435#M2126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using KDS, using Git, having trouble with libraries.&amp;nbsp; The learning curve is killing me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a library of small functions to call from my main code.&amp;nbsp; The error I get is undefined reference to &amp;lt;function&amp;gt;.&amp;nbsp; The linker command line is thus.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; c:/freescale/kds_2.0.0/toolchain/bin/../libexec/gcc/arm-none-eabi/4.8.0/collect2.exe --sysroot=/work/joes/kds-releases/2.0.0/install/i686-w64-mingw32/arm-none-eabi -X -o comm.elf c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/crti.o c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/crtbegin.o c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/lib/crt0.o -LC:/Freescale/git/comm/comm/Project_Settings/Linker_Files -Lc:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0 -Lc:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc -Lc:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/lib --gc-sections -Map comm.map --cref ./Sources/&lt;STRONG&gt;Events.o&lt;/STRONG&gt; ./Sources/main.o ./Project_Settings/Startup_Code/startup.o ./Generated_Code/AS1.o ./Generated_Code/ASerialLdd1.o ./Generated_Code/Cpu.o ./Generated_Code/PE_LDD.o ./Generated_Code/Vectors.o -l&lt;STRONG&gt;libchars&lt;/STRONG&gt; -lstdc++ -lm --start-group -lgcc -lg_s -lc_s --end-group c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/crtend.o c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/crtn.o -T C:/Freescale/git/comm/comm/Project_Settings/Linker_Files/ProcessorExpert.ld&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The functions are called in events and created in libchars, so I think the order is correct.&amp;nbsp; Both events and libchars are C++ projects as far as I can determine--C projects don't have the C++ portion of the build chain.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the project explorer, the directories libchars and libchars/debug are in &lt;STRONG&gt;purple folder icons--would love to know what that means&lt;/STRONG&gt;.&amp;nbsp; I can "click through" from the function to it's definition without problems.&amp;nbsp; Can anyone give me something else to try?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jan 2015 00:28:29 GMT</pubDate>
    <dc:creator>andrewmeyerbti</dc:creator>
    <dc:date>2015-01-01T00:28:29Z</dc:date>
    <item>
      <title>undefined reference to &lt;function&gt;</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-lt-function-gt/m-p/382435#M2126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using KDS, using Git, having trouble with libraries.&amp;nbsp; The learning curve is killing me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a library of small functions to call from my main code.&amp;nbsp; The error I get is undefined reference to &amp;lt;function&amp;gt;.&amp;nbsp; The linker command line is thus.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; c:/freescale/kds_2.0.0/toolchain/bin/../libexec/gcc/arm-none-eabi/4.8.0/collect2.exe --sysroot=/work/joes/kds-releases/2.0.0/install/i686-w64-mingw32/arm-none-eabi -X -o comm.elf c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/crti.o c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/crtbegin.o c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/lib/crt0.o -LC:/Freescale/git/comm/comm/Project_Settings/Linker_Files -Lc:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0 -Lc:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc -Lc:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/lib --gc-sections -Map comm.map --cref ./Sources/&lt;STRONG&gt;Events.o&lt;/STRONG&gt; ./Sources/main.o ./Project_Settings/Startup_Code/startup.o ./Generated_Code/AS1.o ./Generated_Code/ASerialLdd1.o ./Generated_Code/Cpu.o ./Generated_Code/PE_LDD.o ./Generated_Code/Vectors.o -l&lt;STRONG&gt;libchars&lt;/STRONG&gt; -lstdc++ -lm --start-group -lgcc -lg_s -lc_s --end-group c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/crtend.o c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/crtn.o -T C:/Freescale/git/comm/comm/Project_Settings/Linker_Files/ProcessorExpert.ld&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The functions are called in events and created in libchars, so I think the order is correct.&amp;nbsp; Both events and libchars are C++ projects as far as I can determine--C projects don't have the C++ portion of the build chain.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the project explorer, the directories libchars and libchars/debug are in &lt;STRONG&gt;purple folder icons--would love to know what that means&lt;/STRONG&gt;.&amp;nbsp; I can "click through" from the function to it's definition without problems.&amp;nbsp; Can anyone give me something else to try?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jan 2015 00:28:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-lt-function-gt/m-p/382435#M2126</guid>
      <dc:creator>andrewmeyerbti</dc:creator>
      <dc:date>2015-01-01T00:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to &lt;function&gt;</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-lt-function-gt/m-p/382436#M2127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell us how you create the library and how call&amp;nbsp;&amp;nbsp; that function step by step,&lt;/P&gt;&lt;P&gt;then we can reproduce your problem .&lt;/P&gt;&lt;P&gt;Its better have some screenshot .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 08:00:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/undefined-reference-to-lt-function-gt/m-p/382436#M2127</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-01-06T08:00:09Z</dc:date>
    </item>
  </channel>
</rss>

