<?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>Kinetis Design StudioのトピックRe: cannot link to static library</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364461#M1685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich, here is the complete linker command line, as well as the output.&amp;nbsp; I clipped the output a bit, because it was very long, but it just repeats over and over "undefined reference"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM C++ Linker'&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -T "C:/M2/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"C:/M2/Project_Settings/Linker_Files" -L"C:\kds_workspace\Segger-GUI\Debug" -Wl,-Map,"M2.map" -nanolibc -o "M2.elf" @ObjectList&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x0): undefined reference to `GUI_Font16B_1'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x4): undefined reference to `GUI_Font20B_1'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x8): undefined reference to `GUI_Font8x16x2x2'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0xc): undefined reference to `GUI_Font8x10_ASCII'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x10): undefined reference to `GUI_FontD24x32'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x14): undefined reference to `GUI_Font20B_1'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o: In function `showTextField(long, int, unsigned long, unsigned long)':&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:143: undefined reference to `WM_GetDialogItem'&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:144: undefined reference to `TEXT_SetBkColor'&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:145: undefined reference to `TEXT_SetTextColor'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o: In function `cbBkWindowCallback(WM_MESSAGE*)':&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:267: undefined reference to `GUI_SetBkColor'&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:268: undefined reference to `GUI_Clear'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 19:21:30 GMT</pubDate>
    <dc:creator>mike1974</dc:creator>
    <dc:date>2015-03-30T19:21:30Z</dc:date>
    <item>
      <title>cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364456#M1680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a library in one project, but I can't seem to link to it in another project which uses it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have done:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Properties --&amp;gt; C/C++ Build --&amp;gt; Settings --&amp;gt; Tool Settings --&amp;gt; Libraries --&amp;gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1) added name of library in the -I field, without .a extension or "lib" prefix&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2) added libraries physical location in the -L field.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still getting "undefined reference" to functions which I have double checked are in fact in the library.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing a something? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:44:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364456#M1680</guid>
      <dc:creator>mike1974</dc:creator>
      <dc:date>2015-03-30T17:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364457#M1681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I should add, that I'm compiling C++ code, and the library is all C code.&amp;nbsp; So perhaps that's the issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364457#M1681</guid>
      <dc:creator>mike1974</dc:creator>
      <dc:date>2015-03-30T17:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364458#M1682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;are you using properly&lt;/P&gt;&lt;P&gt;extern "C"&lt;/P&gt;&lt;P&gt;for everything you interface from C++ to C?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 18:13:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364458#M1682</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-03-30T18:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364459#M1683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the library I'm building is a GUI from Segger, it should build fine with a C++ application.&amp;nbsp; Each .h file in the GUI has:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if defined(__cplusplus)&lt;/P&gt;&lt;P&gt;extern "C" {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Make sure we have C-declarations in C++ programs */&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, I was already building the entire GUI as part of my C++ application.&amp;nbsp; It compiled and linked fine, but it was too many files, so I decided to make the GUI a library and link to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 18:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364459#M1683</guid>
      <dc:creator>mike1974</dc:creator>
      <dc:date>2015-03-30T18:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364460#M1684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you run the 'nm' utility (&lt;A href="http://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/" title="http://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/"&gt;Defining Variables at Absolute Addresses with gcc | MCU on Eclipse&lt;/A&gt;), do you see the proper symbols?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 18:46:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364460#M1684</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-03-30T18:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364461#M1685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich, here is the complete linker command line, as well as the output.&amp;nbsp; I clipped the output a bit, because it was very long, but it just repeats over and over "undefined reference"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM C++ Linker'&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -T "C:/M2/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"C:/M2/Project_Settings/Linker_Files" -L"C:\kds_workspace\Segger-GUI\Debug" -Wl,-Map,"M2.map" -nanolibc -o "M2.elf" @ObjectList&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x0): undefined reference to `GUI_Font16B_1'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x4): undefined reference to `GUI_Font20B_1'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x8): undefined reference to `GUI_Font8x16x2x2'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0xc): undefined reference to `GUI_Font8x10_ASCII'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x10): undefined reference to `GUI_FontD24x32'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o:(.data._ZL7_apFont+0x14): undefined reference to `GUI_Font20B_1'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o: In function `showTextField(long, int, unsigned long, unsigned long)':&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:143: undefined reference to `WM_GetDialogItem'&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:144: undefined reference to `TEXT_SetBkColor'&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:145: undefined reference to `TEXT_SetTextColor'&lt;/P&gt;&lt;P&gt;./Sources/Application/Menu/Screen_Callbacks.o: In function `cbBkWindowCallback(WM_MESSAGE*)':&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:267: undefined reference to `GUI_SetBkColor'&lt;/P&gt;&lt;P&gt;C:\M2\Debug/../Sources/Application/Menu/Screen_Callbacks.cpp:268: undefined reference to `GUI_Clear'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:21:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364461#M1685</guid>
      <dc:creator>mike1974</dc:creator>
      <dc:date>2015-03-30T19:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364462#M1686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm I just noticed I'm using "ObjectList" ( a text file) as the input of .o files to use.&amp;nbsp; I did this to get around the Windows command line limit (8192 chars).&amp;nbsp; I just saw this morning on mcuoneclipse.com that there is a fix for that.&amp;nbsp; I wonder if this could be causing it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364462#M1686</guid>
      <dc:creator>mike1974</dc:creator>
      <dc:date>2015-03-30T19:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364463#M1687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich, I downloaded the new make (and rm and echo) as instructed here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2015/03/29/solving-the-8192-character-command-line-limit-on-windows/" title="http://mcuoneclipse.com/2015/03/29/solving-the-8192-character-command-line-limit-on-windows/"&gt;Solving the 8192 Character Command Line Limit on Windows | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I can link.&amp;nbsp; However, the linker complains that the library I'm using does not have VFP (vector floating point) register arguments, but that my application does.&amp;nbsp; Apparently this prevents me from linking.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do you know where the setting is that allows me change my library to use VFP arguments as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:47:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364463#M1687</guid>
      <dc:creator>mike1974</dc:creator>
      <dc:date>2015-03-30T19:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: cannot link to static library</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364464#M1688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the setting, it's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Properties --&amp;gt; C/C++ Build --&amp;gt; Settings --&amp;gt; Target Processor --&amp;gt; Float ABI.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set it to "FP instructions (hard)" on both my project and the library, I can now link successfully.&amp;nbsp; Life is good... for now :--)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 20:34:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/cannot-link-to-static-library/m-p/364464#M1688</guid>
      <dc:creator>mike1974</dc:creator>
      <dc:date>2015-03-30T20:34:14Z</dc:date>
    </item>
  </channel>
</rss>

