<?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>MQX Software Solutions中的主题 Compiling issues: Multiple definition of __dso_handle, _init,_fini in comp.c in KSDK and KDS</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Compiling-issues-Multiple-definition-of-dso-handle-init-fini-in/m-p/417389#M13893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm experiencing some issues with compilation with the new KDS 2.0.0 and KSDK 1.1.0. I'm attempting to move an old project over from Codewarrior 10.6. I followed this document (&lt;A href="https://community.nxp.com/docs/DOC-103405" rel="nofollow noopener noreferrer" target="_blank"&gt;How To: Create a New MQX RTOS for KSDK Project in KDS&lt;/A&gt;) to make a new project in the KDS, and import the KASK MQX Lib, MQX, and MQX Stdlib, and then I extrapolated from those steps to include the RTCS and MFS libraries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next I've been including some of my source files to start trying to get the skeleton of our application compiling again (including discovering what's changes in MFS or RTCS and making those changes). However, I'm running into issues that are either related to the compiler/linker settings, or the library include paths, which are a bit over my head:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting "multiple definition of" errors for a few functions in comp.c in the mqx_frdmk64f&amp;nbsp; -&amp;gt; MQX_Generic -&amp;gt; include folder. This error happens when I compile my custom project, not the MQX_frdmk64f library project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm only including these headers in my project for now:&lt;/P&gt;&lt;P&gt;#include &amp;lt;mqx.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;lwmsgq.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;mfs.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;ipcfg.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm unclear where it's including comp.c that is casing it to recompile. The full console output from the build is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1429222048526288" jivemacro_uid="_1429222048526288"&gt;
&lt;P&gt;19:02:48 **** Incremental Build of configuration Debug for project ELMU_KDS_K64 ****&lt;/P&gt;
&lt;P&gt;make all &lt;/P&gt;
&lt;P&gt;'Building file: ../Sources/config.c'&lt;/P&gt;
&lt;P&gt;'Invoking: Cross ARM C Compiler'&lt;/P&gt;
&lt;P&gt;arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -D"CPU_MK64FN1M0VMD12=1" -D"FSL_RTOS_MQX=1" -D"_AEABI_LC_CTYPE=C" -D"__STRICT_ANSI__=1" -D"_DEBUG=1" -DMQX_USE_IO_OLD=0 -DPLATFORM_SDK_ENABLED=1 -I"../Sources" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/drivers/src/enet" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/filesystem/mfs/lib/frdmk64f.kds/debug/mfs" -I"../Sources/Board" -I"../Sources/BSP_files" -I"../Sources/Config_files" -I"../Sources/Config_files/Common" -I"../Sources/Utilities" -I"../Project_Settings/Startup_Code" -I"../SDK/platform/CMSIS/Include" -I"../SDK/platform/CMSIS/Include/device" -I"../SDK/platform/CMSIS/Include/device/MK64F12" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/utilities/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/utilities/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_serial" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/string" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/config/common" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/core/M4" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/kernel" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/bsp" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_serial/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/strings" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_tty/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/cpu" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/fs" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/stdio" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_tty" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/osa/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/drivers/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/system/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/hal/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/bsp" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/config" -std=c99 -MMD -MP -MF"Sources/config.d" -MT"Sources/config.o" -c -o "Sources/config.o" "../Sources/config.c"&lt;/P&gt;
&lt;P&gt;In file included from ../Sources/config.c:1:0:&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {NULL, NULL, NULL, NULL, NULL}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[0]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[1]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[2]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[3]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[4]') [enabled by default]&lt;/P&gt;
&lt;P&gt;'Finished building: ../Sources/config.c'&lt;/P&gt;
&lt;P&gt;' '&lt;/P&gt;
&lt;P&gt;'Building file: ../Sources/main_task.c'&lt;/P&gt;
&lt;P&gt;'Invoking: Cross ARM C Compiler'&lt;/P&gt;
&lt;P&gt;arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -D"CPU_MK64FN1M0VMD12=1" -D"FSL_RTOS_MQX=1" -D"_AEABI_LC_CTYPE=C" -D"__STRICT_ANSI__=1" -D"_DEBUG=1" -DMQX_USE_IO_OLD=0 -DPLATFORM_SDK_ENABLED=1 -I"../Sources" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/drivers/src/enet" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/filesystem/mfs/lib/frdmk64f.kds/debug/mfs" -I"../Sources/Board" -I"../Sources/BSP_files" -I"../Sources/Config_files" -I"../Sources/Config_files/Common" -I"../Sources/Utilities" -I"../Project_Settings/Startup_Code" -I"../SDK/platform/CMSIS/Include" -I"../SDK/platform/CMSIS/Include/device" -I"../SDK/platform/CMSIS/Include/device/MK64F12" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/utilities/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/utilities/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_serial" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/string" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/config/common" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/core/M4" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/kernel" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/bsp" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_serial/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/strings" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_tty/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/cpu" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/fs" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/stdio" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_tty" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/osa/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/drivers/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/system/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/hal/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/bsp" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/config" -std=c99 -MMD -MP -MF"Sources/main_task.d" -MT"Sources/main_task.o" -c -o "Sources/main_task.o" "../Sources/main_task.c"&lt;/P&gt;
&lt;P&gt;In file included from ../Sources/main_task.c:59:0:&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {NULL, NULL, NULL, NULL, NULL}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[0]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[1]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[2]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[3]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[4]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/main_task.c: In function 'main_task':&lt;/P&gt;
&lt;P&gt;../Sources/main_task.c:665:3: warning: implicit declaration of function 'install_sd' [-Wimplicit-function-declaration]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; file_error = install_sd();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;../Sources/main_task.c:666:3: warning: implicit declaration of function 'monitor_sd' [-Wimplicit-function-declaration]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; file_error = monitor_sd();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;'Finished building: ../Sources/main_task.c'&lt;/P&gt;
&lt;P&gt;' '&lt;/P&gt;
&lt;P&gt;'Building target: ELMU_KDS_K64.elf'&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 "MK64FN1M0xxx12_flash.ld" -Xlinker --gc-sections -L"D:/Development/13214-ELMU/trunk/ETCCode/ELMU_KDS_K64/ELMU_KDS_K64/Project_Settings/Linker_Files" -L"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug" -L"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx" -L"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib" -Wl,-Map,"ELMU_KDS_K64.map" -nanolibc -o "ELMU_KDS_K64.elf"&amp;nbsp; ./Sources/Utilities/fsl_debug_console.o&amp;nbsp; ./Sources/Board/gpio_pins.o ./Sources/Board/hardware_init.o ./Sources/Board/pin_mux.o&amp;nbsp; ./Sources/BSP_files/init_bsp.o ./Sources/BSP_files/mqx_main.o&amp;nbsp; ./Sources/config.o ./Sources/main_task.o&amp;nbsp; ./Project_Settings/Startup_Code/startup.o ./Project_Settings/Startup_Code/startup_MK64F12.o ./Project_Settings/Startup_Code/system_MK64F12.o&amp;nbsp; D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug/libksdk_platform_mqx.a D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/filesystem/mfs/lib/frdmk64f.kds/debug/mfs/lib_mfs.a D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs/lib_rtcs.a D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a D:/Development/13214-ELMU/trunk/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;D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx\lib_mqx.a(comp.o): In function `_exit':&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm/comp.c:64: multiple definition of `__dso_handle'&lt;/P&gt;
&lt;P&gt;d:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16/crtbegin.o:(.data.__dso_handle+0x0): first defined here&lt;/P&gt;
&lt;P&gt;D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx\lib_mqx.a(comp.o): In function `toolchain_startup':&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm/comp.c:74: multiple definition of `_init'&lt;/P&gt;
&lt;P&gt;d:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16/crti.o:(.init+0x0): first defined here&lt;/P&gt;
&lt;P&gt;D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx\lib_mqx.a(comp.o): In function `_fini':&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm/comp.c:84: multiple definition of `_fini'&lt;/P&gt;
&lt;P&gt;d:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16/crti.o:(.fini+0x0): first defined here&lt;/P&gt;
&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;
&lt;P&gt;make: *** [ELMU_KDS_K64.elf] Error 1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;19:02:50 Build Finished (took 2s.242ms)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the important part seems to be in the linker section in the borrom area starting at line 46. The linker call is broken up here for better readability:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14292220990102684 jive_text_macro jive_macro_code" jivemacro_uid="_14292220990102684"&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 "MK64FN1M0xxx12_flash.ld" -Xlinker --gc-sections -L&lt;/P&gt;
&lt;P&gt;"D:/Development/13214-ELMU/trunk/ETCCode/ELMU_KDS_K64/ELMU_KDS_K64/Project_Settings/Linker_Files" -L&lt;/P&gt;
&lt;P&gt;"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug" -L&lt;/P&gt;
&lt;P&gt;"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx" -L&lt;/P&gt;
&lt;P&gt;"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib"&lt;/P&gt;
&lt;P&gt; -Wl,-Map,"ELMU_KDS_K64.map" -nanolibc -o "ELMU_KDS_K64.elf"&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Sources/Utilities/fsl_debug_console.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Sources/Board/gpio_pins.o &lt;/P&gt;
&lt;P&gt;./Sources/Board/hardware_init.o &lt;/P&gt;
&lt;P&gt;./Sources/Board/pin_mux.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Sources/BSP_files/init_bsp.o &lt;/P&gt;
&lt;P&gt;./Sources/BSP_files/mqx_main.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Sources/config.o &lt;/P&gt;
&lt;P&gt;./Sources/main_task.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Project_Settings/Startup_Code/startup.o &lt;/P&gt;
&lt;P&gt;./Project_Settings/Startup_Code/startup_MK64F12.o &lt;/P&gt;
&lt;P&gt;./Project_Settings/Startup_Code/system_MK64F12.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug/libksdk_platform_mqx.a&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/filesystem/mfs/lib/frdmk64f.kds/debug/mfs/lib_mfs.a&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs/lib_rtcs.a &lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a &lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a &lt;/P&gt;
&lt;P&gt;-lksdk_platform_mqx -l_mqx -l_mqx_stdlib&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why this might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 22:09:53 GMT</pubDate>
    <dc:creator>ironsean</dc:creator>
    <dc:date>2015-04-16T22:09:53Z</dc:date>
    <item>
      <title>Compiling issues: Multiple definition of __dso_handle, _init,_fini in comp.c in KSDK and KDS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Compiling-issues-Multiple-definition-of-dso-handle-init-fini-in/m-p/417389#M13893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm experiencing some issues with compilation with the new KDS 2.0.0 and KSDK 1.1.0. I'm attempting to move an old project over from Codewarrior 10.6. I followed this document (&lt;A href="https://community.nxp.com/docs/DOC-103405" rel="nofollow noopener noreferrer" target="_blank"&gt;How To: Create a New MQX RTOS for KSDK Project in KDS&lt;/A&gt;) to make a new project in the KDS, and import the KASK MQX Lib, MQX, and MQX Stdlib, and then I extrapolated from those steps to include the RTCS and MFS libraries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next I've been including some of my source files to start trying to get the skeleton of our application compiling again (including discovering what's changes in MFS or RTCS and making those changes). However, I'm running into issues that are either related to the compiler/linker settings, or the library include paths, which are a bit over my head:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting "multiple definition of" errors for a few functions in comp.c in the mqx_frdmk64f&amp;nbsp; -&amp;gt; MQX_Generic -&amp;gt; include folder. This error happens when I compile my custom project, not the MQX_frdmk64f library project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm only including these headers in my project for now:&lt;/P&gt;&lt;P&gt;#include &amp;lt;mqx.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;lwmsgq.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;mfs.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;ipcfg.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm unclear where it's including comp.c that is casing it to recompile. The full console output from the build is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1429222048526288" jivemacro_uid="_1429222048526288"&gt;
&lt;P&gt;19:02:48 **** Incremental Build of configuration Debug for project ELMU_KDS_K64 ****&lt;/P&gt;
&lt;P&gt;make all &lt;/P&gt;
&lt;P&gt;'Building file: ../Sources/config.c'&lt;/P&gt;
&lt;P&gt;'Invoking: Cross ARM C Compiler'&lt;/P&gt;
&lt;P&gt;arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -D"CPU_MK64FN1M0VMD12=1" -D"FSL_RTOS_MQX=1" -D"_AEABI_LC_CTYPE=C" -D"__STRICT_ANSI__=1" -D"_DEBUG=1" -DMQX_USE_IO_OLD=0 -DPLATFORM_SDK_ENABLED=1 -I"../Sources" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/drivers/src/enet" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/filesystem/mfs/lib/frdmk64f.kds/debug/mfs" -I"../Sources/Board" -I"../Sources/BSP_files" -I"../Sources/Config_files" -I"../Sources/Config_files/Common" -I"../Sources/Utilities" -I"../Project_Settings/Startup_Code" -I"../SDK/platform/CMSIS/Include" -I"../SDK/platform/CMSIS/Include/device" -I"../SDK/platform/CMSIS/Include/device/MK64F12" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/utilities/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/utilities/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_serial" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/string" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/config/common" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/core/M4" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/kernel" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/bsp" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_serial/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/strings" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_tty/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/cpu" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/fs" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/stdio" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_tty" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/osa/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/drivers/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/system/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/hal/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/bsp" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/config" -std=c99 -MMD -MP -MF"Sources/config.d" -MT"Sources/config.o" -c -o "Sources/config.o" "../Sources/config.c"&lt;/P&gt;
&lt;P&gt;In file included from ../Sources/config.c:1:0:&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {NULL, NULL, NULL, NULL, NULL}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[0]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[1]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[2]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[3]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[4]') [enabled by default]&lt;/P&gt;
&lt;P&gt;'Finished building: ../Sources/config.c'&lt;/P&gt;
&lt;P&gt;' '&lt;/P&gt;
&lt;P&gt;'Building file: ../Sources/main_task.c'&lt;/P&gt;
&lt;P&gt;'Invoking: Cross ARM C Compiler'&lt;/P&gt;
&lt;P&gt;arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -D"CPU_MK64FN1M0VMD12=1" -D"FSL_RTOS_MQX=1" -D"_AEABI_LC_CTYPE=C" -D"__STRICT_ANSI__=1" -D"_DEBUG=1" -DMQX_USE_IO_OLD=0 -DPLATFORM_SDK_ENABLED=1 -I"../Sources" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/drivers/src/enet" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/filesystem/mfs/lib/frdmk64f.kds/debug/mfs" -I"../Sources/Board" -I"../Sources/BSP_files" -I"../Sources/Config_files" -I"../Sources/Config_files/Common" -I"../Sources/Utilities" -I"../Project_Settings/Startup_Code" -I"../SDK/platform/CMSIS/Include" -I"../SDK/platform/CMSIS/Include/device" -I"../SDK/platform/CMSIS/Include/device/MK64F12" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/utilities/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/utilities/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_serial" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/string" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/config/common" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/core/M4" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/kernel" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/bsp" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_serial/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/strings" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_tty/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy/src" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/cpu" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/fs" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx_stdlib/source/stdio" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_tty" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/nio/drivers/nio_dummy" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/osa/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/drivers/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/system/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/platform/hal/inc" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/bsp" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/mqx/source/include" -I"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/config" -std=c99 -MMD -MP -MF"Sources/main_task.d" -MT"Sources/main_task.o" -c -o "Sources/main_task.o" "../Sources/main_task.c"&lt;/P&gt;
&lt;P&gt;In file included from ../Sources/main_task.c:59:0:&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {NULL, NULL, NULL, NULL, NULL}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[0]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[1]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[2]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[3]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: initialization makes integer from pointer without a cast [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/config.h:238:2: warning: (near initialization for 'config_filter[19].name[4]') [enabled by default]&lt;/P&gt;
&lt;P&gt;../Sources/main_task.c: In function 'main_task':&lt;/P&gt;
&lt;P&gt;../Sources/main_task.c:665:3: warning: implicit declaration of function 'install_sd' [-Wimplicit-function-declaration]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; file_error = install_sd();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;../Sources/main_task.c:666:3: warning: implicit declaration of function 'monitor_sd' [-Wimplicit-function-declaration]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; file_error = monitor_sd();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;
&lt;P&gt;'Finished building: ../Sources/main_task.c'&lt;/P&gt;
&lt;P&gt;' '&lt;/P&gt;
&lt;P&gt;'Building target: ELMU_KDS_K64.elf'&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 "MK64FN1M0xxx12_flash.ld" -Xlinker --gc-sections -L"D:/Development/13214-ELMU/trunk/ETCCode/ELMU_KDS_K64/ELMU_KDS_K64/Project_Settings/Linker_Files" -L"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug" -L"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx" -L"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib" -Wl,-Map,"ELMU_KDS_K64.map" -nanolibc -o "ELMU_KDS_K64.elf"&amp;nbsp; ./Sources/Utilities/fsl_debug_console.o&amp;nbsp; ./Sources/Board/gpio_pins.o ./Sources/Board/hardware_init.o ./Sources/Board/pin_mux.o&amp;nbsp; ./Sources/BSP_files/init_bsp.o ./Sources/BSP_files/mqx_main.o&amp;nbsp; ./Sources/config.o ./Sources/main_task.o&amp;nbsp; ./Project_Settings/Startup_Code/startup.o ./Project_Settings/Startup_Code/startup_MK64F12.o ./Project_Settings/Startup_Code/system_MK64F12.o&amp;nbsp; D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug/libksdk_platform_mqx.a D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/filesystem/mfs/lib/frdmk64f.kds/debug/mfs/lib_mfs.a D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs/lib_rtcs.a D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a D:/Development/13214-ELMU/trunk/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;D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx\lib_mqx.a(comp.o): In function `_exit':&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm/comp.c:64: multiple definition of `__dso_handle'&lt;/P&gt;
&lt;P&gt;d:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16/crtbegin.o:(.data.__dso_handle+0x0): first defined here&lt;/P&gt;
&lt;P&gt;D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx\lib_mqx.a(comp.o): In function `toolchain_startup':&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm/comp.c:74: multiple definition of `_init'&lt;/P&gt;
&lt;P&gt;d:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16/crti.o:(.init+0x0): first defined here&lt;/P&gt;
&lt;P&gt;D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx\lib_mqx.a(comp.o): In function `_fini':&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm/comp.c:84: multiple definition of `_fini'&lt;/P&gt;
&lt;P&gt;d:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16/crti.o:(.fini+0x0): first defined here&lt;/P&gt;
&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;
&lt;P&gt;make: *** [ELMU_KDS_K64.elf] Error 1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;19:02:50 Build Finished (took 2s.242ms)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the important part seems to be in the linker section in the borrom area starting at line 46. The linker call is broken up here for better readability:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14292220990102684 jive_text_macro jive_macro_code" jivemacro_uid="_14292220990102684"&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 "MK64FN1M0xxx12_flash.ld" -Xlinker --gc-sections -L&lt;/P&gt;
&lt;P&gt;"D:/Development/13214-ELMU/trunk/ETCCode/ELMU_KDS_K64/ELMU_KDS_K64/Project_Settings/Linker_Files" -L&lt;/P&gt;
&lt;P&gt;"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug" -L&lt;/P&gt;
&lt;P&gt;"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx" -L&lt;/P&gt;
&lt;P&gt;"D:\Development\13214-ELMU\trunk\Freescale\KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib"&lt;/P&gt;
&lt;P&gt; -Wl,-Map,"ELMU_KDS_K64.map" -nanolibc -o "ELMU_KDS_K64.elf"&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Sources/Utilities/fsl_debug_console.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Sources/Board/gpio_pins.o &lt;/P&gt;
&lt;P&gt;./Sources/Board/hardware_init.o &lt;/P&gt;
&lt;P&gt;./Sources/Board/pin_mux.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Sources/BSP_files/init_bsp.o &lt;/P&gt;
&lt;P&gt;./Sources/BSP_files/mqx_main.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Sources/config.o &lt;/P&gt;
&lt;P&gt;./Sources/main_task.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;./Project_Settings/Startup_Code/startup.o &lt;/P&gt;
&lt;P&gt;./Project_Settings/Startup_Code/startup_MK64F12.o &lt;/P&gt;
&lt;P&gt;./Project_Settings/Startup_Code/system_MK64F12.o&amp;nbsp; &lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/lib/ksdk_mqx_lib/kds/K64F12/Debug/libksdk_platform_mqx.a&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/filesystem/mfs/lib/frdmk64f.kds/debug/mfs/lib_mfs.a&lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/tcpip/rtcs/lib/frdmk64f.kds/debug/rtcs/lib_rtcs.a &lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a &lt;/P&gt;
&lt;P&gt;D:/Development/13214-ELMU/trunk/Freescale/KSDK_1.1.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a &lt;/P&gt;
&lt;P&gt;-lksdk_platform_mqx -l_mqx -l_mqx_stdlib&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why this might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 22:09:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Compiling-issues-Multiple-definition-of-dso-handle-init-fini-in/m-p/417389#M13893</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-04-16T22:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling issues: Multiple definition of __dso_handle, _init,_fini in comp.c in KSDK and KDS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Compiling-issues-Multiple-definition-of-dso-handle-init-fini-in/m-p/417390#M13894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manually removing the offending path from the library includes didn't help either:&lt;/P&gt;&lt;P&gt;"${PROJECT_KSDK_PATH}/rtos/mqx/mqx/source/psp/cortex_m/compiler/gcc_arm"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, that includes at compile time, and the error appears to throw during the linking phase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 22:47:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Compiling-issues-Multiple-definition-of-dso-handle-init-fini-in/m-p/417390#M13894</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-04-17T22:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compiling issues: Multiple definition of __dso_handle, _init,_fini in comp.c in KSDK and KDS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Compiling-issues-Multiple-definition-of-dso-handle-init-fini-in/m-p/417391#M13895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer found here: &lt;A href="https://community.nxp.com/message/507840"&gt;Re: Re: arm-none-eabi conflicting with mqx: multiple definitions of stdio.h and others causing compiler problems.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to mark this as assumed answered so I don't need to tag my own posts as answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:20:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Compiling-issues-Multiple-definition-of-dso-handle-init-fini-in/m-p/417391#M13895</guid>
      <dc:creator>ironsean</dc:creator>
      <dc:date>2015-04-21T20:20:25Z</dc:date>
    </item>
  </channel>
</rss>

