<?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 Re: Built MQX libraries not being found by linker in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Built-MQX-libraries-not-being-found-by-linker/m-p/440058#M14714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For now I suppose that you use KDS2.0 and you build application from here. If not, please add some details about your environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that there could be conflict because you try loading the same library twice:&lt;/P&gt;&lt;P&gt;-l_mqx_stdlib and C:/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a&lt;/P&gt;&lt;P&gt;-l_mqx and C:/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a&lt;/P&gt;&lt;P&gt;-lksdk_platform_mqx and C:/Freescale/KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug/libksdk_platform_mqx.a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to recommend keep just one instance of these libraries.&lt;/P&gt;&lt;P&gt;So, if you look at project properties - C/C++ build settings - Linker option you should add library as either Library or Other objects:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49154i91E39DCA0E8AE3E9/image-size/large?v=v2&amp;amp;px=999" title="Lib.png" alt="Lib.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49097i67140DC59440C474/image-size/large?v=v2&amp;amp;px=999" title="Misc.png" alt="Misc.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that you use C++ linker. Is your project compiled be C++ compiler?&lt;/P&gt;&lt;P&gt;If it is possible, could you please attach here your project, that we can test it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 13:41:13 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2015-04-30T13:41:13Z</dc:date>
    <item>
      <title>Built MQX libraries not being found by linker</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Built-MQX-libraries-not-being-found-by-linker/m-p/440057#M14713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the linker command:&lt;/P&gt;&lt;P&gt;&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 -g3 -T "MK64FN1M0xxx12_flash.ld" -Xlinker --gc-sections -L"C:/Users/B52864/workspace.kds/New_MQX_Project/Project_Settings/Linker_Files" -L"C:\Freescale\KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug" -L"C:\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64.kds/debug/mqx" -L"C:\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64.kds/debug/mqx_stdlib" -Wl,-Map,"New_MQX_Project.map" -nanolibc -o "New_MQX_Project.elf" ./Sources/Utilities/fsl_debug_console.o ./Sources/Board/gpio_pins.o ./Sources/Board/hardware_init.o ./Sources/Board/pin_mux.o ./Sources/BSP_Files/init_bsp.o ./Sources/BSP_Files/mqx_main.o ./Sources/main.o ./Project_Settings/Startup_Code/startup.o ./Project_Settings/Startup_Code/startup_MK64F12.o ./Project_Settings/Startup_Code/system_MK64F12.o C:/Freescale/KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug/libksdk_platform_mqx.a C:/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a C:/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a -lksdk_platform_mqx -l_mqx -l_mqx_stdlib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the errors below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -l_mqx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -l_mqx_stdlib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've verified that I can go to the paths at the end of the linker command to find the lib_mqx.a and lib_mqx_stdlib.a files that are being used. It's interesting because the convention is similar to what's used for libksdk_platform_mqx.a, and the linker is able to find that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas as to what can be done here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 21:02:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Built-MQX-libraries-not-being-found-by-linker/m-p/440057#M14713</guid>
      <dc:creator>reagan_revisore</dc:creator>
      <dc:date>2015-04-23T21:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Built MQX libraries not being found by linker</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Built-MQX-libraries-not-being-found-by-linker/m-p/440058#M14714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For now I suppose that you use KDS2.0 and you build application from here. If not, please add some details about your environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that there could be conflict because you try loading the same library twice:&lt;/P&gt;&lt;P&gt;-l_mqx_stdlib and C:/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a&lt;/P&gt;&lt;P&gt;-l_mqx and C:/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a&lt;/P&gt;&lt;P&gt;-lksdk_platform_mqx and C:/Freescale/KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug/libksdk_platform_mqx.a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to recommend keep just one instance of these libraries.&lt;/P&gt;&lt;P&gt;So, if you look at project properties - C/C++ build settings - Linker option you should add library as either Library or Other objects:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49154i91E39DCA0E8AE3E9/image-size/large?v=v2&amp;amp;px=999" title="Lib.png" alt="Lib.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49097i67140DC59440C474/image-size/large?v=v2&amp;amp;px=999" title="Misc.png" alt="Misc.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that you use C++ linker. Is your project compiled be C++ compiler?&lt;/P&gt;&lt;P&gt;If it is possible, could you please attach here your project, that we can test it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Built-MQX-libraries-not-being-found-by-linker/m-p/440058#M14714</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-04-30T13:41:13Z</dc:date>
    </item>
  </channel>
</rss>

