file ../ext/oatpp-1.3.0/lib/cortexa9hf_neon_Release/liboatpp.a
objdump -a path/to/liboatpp.a
?
source /opt/phytec-yogurt/BSP-Yocto-i.MX6-PD18.1.1/environment-setup-cortexa9hf-neon-phytec-linux-gnueabi
should have done something like that, but apparently it didn't.
Hello @mmn:matrix.org ,
The macros are used throughout the examples, but AFAIK it isn't explained anywhere what they do.
You can find docs on ORM, DTO, and other oatpp components here on the website:
If you feel that those docs aren't enough - please file an issue on Github - in oatpp website repo - https://github.com/oatpp/website
//My client class
class VoucherClient : public oatpp::web::client::ApiClient
{
#include OATPP_CODEGEN_BEGIN(ApiClient)
API_CLIENT_INIT(VoucherClient)
API_CALL_ASYNC("POST", "/", getRoot)
API_CALL("POST", "/connect", connect, BODY_STRING(String, ip))
#include OATPP_CODEGEN_END(ApiClient)
};
//My API call function :
void funcCall(shared_ptr<VoucherClient> client)
{
cout << "[Connect] Calling the server..." << endl;
auto data = client->connect("127.0.0.1")->readBodyToString(); //Crash dans le thread
OATPP_LOGD("CLIENT", "[connect] data='%s'", data->c_str());
}
//My run function :
void run()
{
cout << "Creating objectmapper" << endl;
auto objectMapper = oatpp::parser::json::mapping::ObjectMapper::createShared();
cout << "Creating requestexecutor" << endl;
auto requestExecutor = createOatppExecutor();
cout << "Creating client" << endl;
auto client = VoucherClient::createShared(requestExecutor, objectMapper);
std::thread th(client);
}
//My main function :
int main()
{
oatpp::base::Environment::init();
printHelp();
run();
oatpp::base::Environment::destroy();
cout << "Press any key to close the program" << endl;
_getch();
return 0;
}