You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd odatacpp
mkdir lib
cd lib
git clone https://git01.codeplex.com/casablanca
cd casablanca
git checkout v2.1.0 (I used development branch to build since it will be built break in v2.1.0, and switch back after build it)
mkdir build.release
cd build.release
cmake ../Release -DCMAKE_BUILD_TYPE=Release
make -j 4
The above steps work well, but when I run the following commands, i have the error
cd ../../..
cmake -DCMAKE_BUILD_TYPE=Debug # replace 'Debug' with 'Release' if needed
make -j 4
Undefined symbols for architecture x86_64:
"web::http::client::http_client::request(web::http::http_request, pplx::cancellation_token)", referenced from:
odata::communication::http_client_impl::send_http_request(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in http_implement.cpp.o
odata::communication::http_client_impl::send_http_request(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, web::json::value) in http_implement.cpp.o
"web::http::details::http_msg_base::_extract_json()", referenced from:
std::__1::__function::__func<web::http::http_response::extract_json() const::'lambda'(unsigned long long), std::__1::allocator<web::http::http_response::extract_json() const::'lambda'(unsigned long long)>, web::json::value (unsigned long long)>::operator()(unsigned long long&&) in odata_client.cpp.o
"web::http::details::http_msg_base::set_body(Concurrency::streams::basic_istream, unsigned long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >)", referenced from:
web::http::http_request::set_body(Concurrency::streams::basic_istream, unsigned long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in http_implement.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered:
Hi, i followed the readme:
cd odatacpp
mkdir lib
cd lib
git clone https://git01.codeplex.com/casablanca
cd casablanca
git checkout v2.1.0 (I used development branch to build since it will be built break in v2.1.0, and switch back after build it)
mkdir build.release
cd build.release
cmake ../Release -DCMAKE_BUILD_TYPE=Release
make -j 4
The above steps work well, but when I run the following commands, i have the error
cd ../../..
cmake -DCMAKE_BUILD_TYPE=Debug # replace 'Debug' with 'Release' if needed
make -j 4
Undefined symbols for architecture x86_64:
"web::http::client::http_client::request(web::http::http_request, pplx::cancellation_token)", referenced from:
odata::communication::http_client_impl::send_http_request(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in http_implement.cpp.o
odata::communication::http_client_impl::send_http_request(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, web::json::value) in http_implement.cpp.o
"web::http::details::http_msg_base::_extract_json()", referenced from:
std::__1::__function::__func<web::http::http_response::extract_json() const::'lambda'(unsigned long long), std::__1::allocator<web::http::http_response::extract_json() const::'lambda'(unsigned long long)>, web::json::value (unsigned long long)>::operator()(unsigned long long&&) in odata_client.cpp.o
"web::http::details::http_msg_base::set_body(Concurrency::streams::basic_istream, unsigned long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >)", referenced from:
web::http::http_request::set_body(Concurrency::streams::basic_istream, unsigned long long, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) in http_implement.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: