aws / aws-iot-device-sdk-cpp-v2

Next generation AWS IoT Client SDK for C++ using the AWS Common Runtime
Apache License 2.0
184 stars 109 forks source link

Problem linking with libs using eclipse #174

Closed identisoft-alaric closed 4 years ago

identisoft-alaric commented 4 years ago

Confirm by changing [ ] to [x] below:

Known Issue

Platform/OS/Device Linux Mint 20

Describe the question I have build the sdk as per the instructions (https://github.com/aws/aws-iot-device-sdk-cpp-v2/blob/master/README.md) and am trying to use the static libs (libaws-crt-cpp.a, etc) in a test application using eclipse ide. It compiles fine however when it come to linking I get many "unresolved" errors i.e

"/usr/bin/ld: /home/build/eclipse-workspace/awsiot-test/sdk-cpp-workspace/lib/libaws-crt-cpp.a(Types.cpp.o): in function Aws::Crt::Base64Decode(std::__cxx11::basic_string<char, std::char_traits<char>, Aws::Crt::StlAllocator<char> > const&)': /home/build/eclipse-workspace/awsiot-test/sdk-cpp-workspace/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/source/Types.cpp:57: undefined reference toaws_base64_compute_decoded_len'"

Here is the sample c++ project created in eclipse - https://drive.google.com/file/d/1_fgA5gx9jYuIB4Z_jhaRA2UKLv4s58wQ/view?usp=sharing

I may have done something really stupid so forgive me but any help would be greatly appreciated.

Thanks. Alaric

jmklix commented 4 years ago

Have you been able to get the basic_pub_sub working while using eclipse?

identisoft-alaric commented 4 years ago

Hi jmklix, Thanks for the reply, unfortunately we haven't yet.

jmklix commented 4 years ago

You should be able to get the basic_pub_sub working with just the command line and I recommend that you do that first. As far as ide's go eclipse is not the best. Maybe try VSCode?

identisoft-alaric commented 4 years ago

OK, thought I'd try AWS libs but will go back to using the mosquitto c libs which we have used in previous projects. Thanx.

github-actions[bot] commented 4 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.