Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symbol(s) not found for architecture x86_64 #15

Open
zheng-liu-seattle opened this issue Nov 15, 2014 · 0 comments
Open

symbol(s) not found for architecture x86_64 #15

zheng-liu-seattle opened this issue Nov 15, 2014 · 0 comments

Comments

@zheng-liu-seattle
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant