This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/66AK2H12: Linker error for cpp file: multiple definition of `_write'

Part Number: 66AK2H12

Tool/software: TI C/C++ Compiler

Getting the following linker error when trying to build a c++ project to test mailboxes in BIOS.


"C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a15 -marm -DSOC_K2H -DDEVICE_K2H -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -mfloat-abi=hard -Wl,-Map,"MailboxTest.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/bios_6_46_05_55/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" --specs=rdimon.specs -o"MailboxTest.out" "./main.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lgcc -lm -lnosys -lstdc++ -Wl,--end-group
makefile:145: recipe for target 'MailboxTest.out' failed
C:/ti/bios_6_46_05_55/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu\librdimon.a(rdimon-syscalls.o): In function `_write':
/home/xlibrary/trees/gnu/gnu-c04/src/linaro/gcc-arm-none-eabi-4_7-2012q4-20121208/src/newlib/libgloss/arm/syscalls.c:425: multiple definition of `_write'
C:/ti/bios_6_46_05_55/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu\libnosys.a(write.o):/home/xlibrary/trees/gnu/gnu-c04/src/linaro/gcc-arm-none-eabi-4_7-2012q4-20121208/src/newlib/libgloss/libnosys/write.c:19: first defined here
collect2.exe: error: ld returned 1 exit status

Any ideas?

Thanks,
Bruce