Arm Mbed OS support forum

Cryptic Linker warnings

Can anyone decipher these linker warnings for me? They don’t make much sense to me…

Environment: Mbed Studio 1.1, MbedOS 5.15.4
Libs used: mbed-http, PinDetect
Platform: EA LPC4088 Quickstart board

[Warning] @0,0: L6439W: Multiply defined Global Symbol std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::basic_string__sub_object(const std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&, unsigned, unsigned, const std::__1::allocator<char>&) defined in .text._ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_jjRKS4_(c:\Users\Chris\AppData\Local\Mbed Studio\mbed-studio-tools\ac6\bin\..\lib\libcxx\libcpp_w.l(string.cpp.o)) rejected in favor of Symbol defined in .text._ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_jjRKS4_(BUILD/LPC4088/ARMC6/src/main.o).
[Warning] @0,0: L6439W: Multiply defined Global Symbol std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::basic_string__sub_object(const std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&) defined in .text._ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(c:\Users\Chris\AppData\Local\Mbed Studio\mbed-studio-tools\ac6\bin\..\lib\libcxx\libcpp_w.l(string.cpp.o)) rejected in favor of Symbol defined in .text._ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_(BUILD/LPC4088/ARMC6/src/main.o).
[Warning] @0,0: L6439W: Multiply defined Global Symbol std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>::~basic_string__sub_object() defined in .text._ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(c:\Users\Chris\AppData\Local\Mbed Studio\mbed-studio-tools\ac6\bin\..\lib\libcxx\libcpp_w.l(string.cpp.o)) rejected in favor of Symbol defined in .text._ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev(BUILD/LPC4088/ARMC6/src/main.o).

So far I’ve ignored them as the binary seems to run fine, but I’m not sure if there’s a ‘structural’ problem I should track down (or not?).

TIA

Hi Chris,

unfortunately looking here, https://os.mbed.com/platforms/EA-LPC4088/ it seems that the last known supported version of Mbed OS for this board was 5.4 (very old). Thus this board cannot be guaranteed to work on newer versions. As it is not currently supported at all (and not mbed enabled) it probably isn’t worth going to much effort to track those issues down (other than for your own use if you wish).
Thanks for raising the question though.

Regards
Anna