Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile MBED Xdot examples in Mbed Studio and MBED CLI #2

Open
bhatsach3052 opened this issue Nov 1, 2022 · 0 comments
Open

Comments

@bhatsach3052
Copy link

I am trying to build and run some of the Xdot examples from GitHub - MultiTechSystems/dot-examples: Example programs for MultiTech Dot devices demonstrating how to use the Dot devices and the Dot libraries for LoRa communication. 1

I verified the MBED OS version. I carefully follow the instructions to import the project and add the library. I also updated the MBED OS version carefully to match the version of the library. I get the following link errors if I try to build with stable version of library. I

Error: L6218E: Undefined symbol mts::Text::bin2hexString(std::__2::vector<unsigned char, std::__2::allocator > const&, char const*, bool, bool) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol mDot::setNetworkId(std::__2::vector<unsigned char, std::__2::allocator > const&) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol mDot::setNetworkKey(std::__2::vector<unsigned char, std::__2::allocator > const&) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol mDot::setNetworkName(std::__2::basic_string<char, std::__2::char_traits, std::__2::allocator > const&) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol mDot::setDataSessionKey(std::__2::vector<unsigned char, std::__2::allocator > const&) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol mDot::setNetworkAddress(std::__2::vector<unsigned char, std::__2::allocator > const&) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol mDot::setNetworkPassphrase(std::__2::basic_string<char, std::__2::char_traits, std::__2::allocator > const&) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol mDot::setNetworkSessionKey(std::__2::vector<unsigned char, std::__2::allocator > const&) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol mDot::send(std::__2::vector<unsigned char, std::__2::allocator > const&, bool const&, bool const&) (referred from BUILD/XDOT_L151CC/ARMC6/examples/src/dot_util.o).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::compare(unsigned int, unsigned int, char const*, unsigned int) const (referred from ./libxdot/libxDot-ARMC6.ar(mDot.o)).
Error: L6218E: Undefined symbol std::__1::__vector_base_common::__throw_length_error() const (referred from ./libxdot/libxDot-ARMC6.ar(mDot.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__init(char const*, unsigned int) (referred from ./libxdot/libxDot-ARMC6.ar(mDot.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::append(char const*, unsigned int) (referred from ./libxdot/libxDot-ARMC6.ar(mDot.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::assign(char const*) (referred from ./libxdot/libxDot-ARMC6.ar(mDot.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::basic_string(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) (referred from ./libxdot/libxDot-ARMC6.ar(mDot.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::~basic_string__sub_object() (referred from ./libxdot/libxDot-ARMC6.ar(mDot.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::operator=(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) (referred from ./libxdot/libxDot-ARMC6.ar(mDot.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::find_first_of(char const*, unsigned int, unsigned int) const (referred from ./libxdot/libxDot-ARMC6.ar(MTSText.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::find(char, unsigned int) const (referred from ./libxdot/libxDot-ARMC6.ar(MTSText.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::append(char const*) (referred from ./libxdot/libxDot-ARMC6.ar(MTSText.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::push_back(char) (referred from ./libxdot/libxDot-ARMC6.ar(MTSText.o)).
Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::basic_string(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, unsigned int, unsigned int, std::__1::allocator const&) (referred from ./libxdot/libxDot-ARMC6.ar(MTSText.o)).
Finished: 0 information, 1 warning and 22 error messages.

I try with developer version of library and get compiler error. Unable to find “Random_Channel.h” file

Could you please help me in running the Dot examples?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant