I am building a Java app on Linux and calling CPP code via JNI. When I link my CPP objects with with libaws-cpp-sdk-core.so I get unresolved symbol:
Aws::Utils::Json::JsonValue::JsonValue(std::__cxx11::basic_string, std::allocator > const&)
The symbol in the aws-spp-sdk-core.so is almost matching: T Aws::Utils::Json::JsonValue::JsonValue(std::__cxx11::basic_string, Aws::Allocator > const&)
except its an Aws::Allocator instead of a std::allocator so I've tried passing both an AWSD ::String and a std::string but no help
The problem sysmbol comes from the following code calling AWS::Utils::Json::JsonValue():
JNIEXPORT jstring JNICALL Java_CCBJNI_labToMix(JNIEnv * env, jobject thisObj, jstring jcolor) {
Aws::Utils::Json::JsonValue labjson;
Aws::Utils::Json::JsonView labview;
string line;
Aws::String const& aws_line(line);
labjson = Aws::Utils::Json::JsonValue(aws_line);
return NULL;
}
I have built the AWSSDK from source on Linux and have tried linking in all the generated .so libs I have install the prereqs: $sudo apt-get install libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev libpulse-dev works on Windows using nuget package manager other AWS calls are working just not this one.
Thanks for any help