该问题是由于缺少 openssl 库导致的,可以通过在编译时链接 openssl 库解决。具体步骤如下:
安装 openssl 库和开发包 sudo apt-get install libssl-dev
修改 AWS SDK 的 Makefile 在 Makefile 中添加以下内容,以链接 openssl 库: LIBS += -lssl -lcrypto
重新编译 AWS SDK make clean make
这样就可以解决 Amazon AWS SDK undefined reference to symbol 'BN_num_bits@@OPENSSL_1_1_0' 的问题了。