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

compile error with gcc-5.3 #12

Open
chenyun90323 opened this issue May 27, 2016 · 0 comments
Open

compile error with gcc-5.3 #12

chenyun90323 opened this issue May 27, 2016 · 0 comments

Comments

@chenyun90323
Copy link

error like this

[ 88%] Linking CXX executable AtomicTests
CMakeFiles/AtomicTests.dir/generated/TestExchange8.cpp.o: In function `std::thread::thread<void* (*&)(void*), void*&>(void* (*&)(void*), void*&)':
/usr/local/include/c++/5.3.0/thread:137: undefined reference to `std::thread::_M_start_thread(std::shared_ptr<std::thread::_Impl_base>, void (*)())'
../../libturf.a(Affinity_Linux.cpp.o): In function `turf::Affinity_Linux::Affinity_Linux()':
/home/chenyun/workspace/turf/turf/impl/Affinity_Linux.cpp:29: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()'
/home/chenyun/workspace/turf/turf/impl/Affinity_Linux.cpp:30: undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
/home/chenyun/workspace/turf/turf/impl/Affinity_Linux.cpp:31: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_first_of(char, unsigned long) const'
/home/chenyun/workspace/turf/turf/impl/Affinity_Linux.cpp:33: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(char const*, unsigned long) const'
/home/chenyun/workspace/turf/turf/impl/Affinity_Linux.cpp:34: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::substr(unsigned long, unsigned long) const'
/home/chenyun/workspace/turf/turf/impl/Affinity_Linux.cpp:36: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const'
/home/chenyun/workspace/turf/turf/impl/Affinity_Linux.cpp:34: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/home/chenyun/workspace/turf/turf/impl/Affinity_Linux.cpp:29: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
../../libturf.a(Affinity_Linux.cpp.o): In function `bool std::operator==<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)':
/usr/local/include/c++/5.3.0/bits/basic_string.h:4941: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const'
collect2: error: ld returned 1 exit status
make[2]: *** [samples/AtomicTests/AtomicTests] Error 1
make[1]: *** [samples/AtomicTests/CMakeFiles/AtomicTests.dir/all] Error 2
make: *** [all] Error 2
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