-
Notifications
You must be signed in to change notification settings - Fork 5
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
Build error #2
Comments
I have the same error. It seems like there is an error with boost, but when I try to run |
|
I'm building with boost-1.72. So I guess that's the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thsi is the output of make command
g++ -Wall -MD -O3 -lX11 -lXtst -lboost_thread -lboost_system -pthread -I src/ -o pengWin src/main.cpp src/misc/util.cpp src/misc/clicker.cpp src/misc/manager.cpp src/misc/settings.cpp src/misc/memory_access.cpp src/misc/hotkey.cpp src/hacks/radar.cpp src/hacks/aimer.cpp src/hacks/bunnyhop.cpp src/hacks/trigger.cpp src/ValveBSP/BSPFile.cpp src/ValveBSP/BSPParser.cpp src/ValveBSP/TraceRay.cpp src/misc/memory_access.cpp: In member function ‘pid_t MemoryAccess::getPid()’: src/misc/memory_access.cpp:77:8: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] 77 | fgets(buf, 128, in); | ~~~~~^~~~~~~~~~~~~~ src/misc/hotkey.cpp: In member function ‘void HotkeyManager::mousePressListen()’: src/misc/hotkey.cpp:117:9: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result] 117 | read(fd, &event, sizeof(struct input_event)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/misc/hotkey.cpp: In member function ‘Window HotkeyManager::findCSWindow()’: src/misc/hotkey.cpp:224:8: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] 224 | fgets(buf, 128, in); | ~~~~~^~~~~~~~~~~~~~ src/misc/hotkey.cpp: In member function ‘Window HotkeyManager::activeWindow()’: src/misc/hotkey.cpp:238:8: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] 238 | fgets(buf, 128, in); | ~~~~~^~~~~~~~~~~~~~ /usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::stopListen()':hotkey.cpp:(.text+0x1f3): undefined reference to
boost::thread::native_handle()' /usr/bin/ld: hotkey.cpp:(.text+0x214): undefined reference to
boost::thread::native_handle()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::forwardEvent(_XEvent)': hotkey.cpp:(.text+0x4b3): undefined reference to
XSendEvent'/usr/bin/ld: hotkey.cpp:(.text+0x4bf): undefined reference to
XFlush' /usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::startListen()':hotkey.cpp:(.text+0x967): undefined reference to
boost::thread::detach()' /usr/bin/ld: hotkey.cpp:(.text+0x9c9): undefined reference to
boost::thread::detach()'/usr/bin/ld: hotkey.cpp:(.text+0xa10): undefined reference to
boost::thread::detach()' /usr/bin/ld: hotkey.cpp:(.text+0xa72): undefined reference to
boost::thread::detach()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::HotkeyManager(GameManager&)': hotkey.cpp:(.text+0xd31): undefined reference to
boost::thread::thread()'/usr/bin/ld: hotkey.cpp:(.text+0xdae): undefined reference to
boost::thread::thread()' /usr/bin/ld: hotkey.cpp:(.text+0xdb6): undefined reference to
boost::thread::thread()'/usr/bin/ld: hotkey.cpp:(.text+0xdd8): undefined reference to
XInitThreads' /usr/bin/ld: hotkey.cpp:(.text+0xde4): undefined reference to
XSetErrorHandler'/usr/bin/ld: hotkey.cpp:(.text+0xdeb): undefined reference to
XOpenDisplay' /usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::~HotkeyManager()':hotkey.cpp:(.text+0xe5d): undefined reference to
boost::thread::detach()' /usr/bin/ld: hotkey.cpp:(.text+0xe80): undefined reference to
boost::thread::detach()'/usr/bin/ld: hotkey.cpp:(.text+0xecc): undefined reference to
boost::thread::detach()' /usr/bin/ld: hotkey.cpp:(.text+0xf75): undefined reference to
boost::thread::detach()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::bind(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::function<void (unsigned int)>)': hotkey.cpp:(.text+0x13f3): undefined reference to
XStringToKeysym'/usr/bin/ld: hotkey.cpp:(.text+0x1405): undefined reference to
XKeysymToKeycode' /usr/bin/ld: hotkey.cpp:(.text+0x14bc): undefined reference to
XKeysymToString'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::unbind(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': hotkey.cpp:(.text+0x17e8): undefined reference to
XStringToKeysym'/usr/bin/ld: hotkey.cpp:(.text+0x17f7): undefined reference to
XKeysymToKeycode' /usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::mousePressListen()':hotkey.cpp:(.text+0x1e8a): undefined reference to
boost::thread::detach()' /usr/bin/ld: hotkey.cpp:(.text+0x1ee8): undefined reference to
boost::thread::detach()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
HotkeyManager::keyPressListen()': hotkey.cpp:(.text+0x23bf): undefined reference to
XUngrabKey'/usr/bin/ld: hotkey.cpp:(.text+0x23ec): undefined reference to
XGrabKey' /usr/bin/ld: hotkey.cpp:(.text+0x24ff): undefined reference to
XNextEvent'/usr/bin/ld: hotkey.cpp:(.text+0x25e2): undefined reference to
XSendEvent' /usr/bin/ld: hotkey.cpp:(.text+0x25ee): undefined reference to
XFlush'/usr/bin/ld: hotkey.cpp:(.text+0x291e): undefined reference to
boost::thread::detach()' /usr/bin/ld: hotkey.cpp:(.text+0x297b): undefined reference to
boost::thread::detach()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, HotkeyManager>, boost::_bi::list1<boost::_bi::value<HotkeyManager*> > > >::~thread_data()': hotkey.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEED2Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEED5Ev]+0xf): undefined reference to
boost::detail::thread_data_base::~thread_data_base()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, HotkeyManager>, boost::_bi::list1<boost::_bi::value<HotkeyManager*> > > >::~thread_data()': hotkey.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEED0Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEED5Ev]+0x13): undefined reference to
boost::detail::thread_data_base::~thread_data_base()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf2<void, HotkeyManager, unsigned int, boost::function<void (unsigned int)> >, boost::_bi::list3<boost::_bi::value<HotkeyManager*>, boost::_bi::value<unsigned int>, boost::_bi::value<boost::function<void (unsigned int)> > > > >::~thread_data()': hotkey.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEED2Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEED5Ev]+0x44): undefined reference to
boost::detail::thread_data_base::~thread_data_base()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf2<void, HotkeyManager, unsigned int, boost::function<void (unsigned int)> >, boost::_bi::list3<boost::_bi::value<HotkeyManager*>, boost::_bi::value<unsigned int>, boost::_bi::value<boost::function<void (unsigned int)> > > > >::~thread_data()': hotkey.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEED0Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEED5Ev]+0x43): undefined reference to
boost::detail::thread_data_base::~thread_data_base()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
boost::thread::~thread()': hotkey.cpp:(.text._ZN5boost6threadD2Ev[_ZN5boost6threadD5Ev]+0xe): undefined reference to
boost::thread::detach()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
boost::thread::thread<boost::_bi::bind_t<void, boost::_mfi::mf2<void, HotkeyManager, unsigned int, boost::function<void (unsigned int)> >, boost::_bi::list3<boost::_bi::value<HotkeyManager*>, boost::_bi::value<unsigned int>, boost::_bi::value<boost::function<void (unsigned int)> > > > >(boost::_bi::bind_t<void, boost::_mfi::mf2<void, HotkeyManager, unsigned int, boost::function<void (unsigned int)> >, boost::_bi::list3<boost::_bi::value<HotkeyManager*>, boost::_bi::value<unsigned int>, boost::_bi::value<boost::function<void (unsigned int)> > > >&&)': hotkey.cpp:(.text._ZN5boost6threadC2INS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEEEOT_[_ZN5boost6threadC5INS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEEEOT_]+0xb5): undefined reference to
vtable for boost::detail::thread_data_base'/usr/bin/ld: hotkey.cpp:(.text.ZN5boost6threadC2INS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEEEOT[ZN5boost6threadC5INS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEEEOT]+0x379): undefined reference to
boost::thread::start_thread_noexcept()' /usr/bin/ld: hotkey.cpp:(.text._ZN5boost6threadC2INS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEEEOT_[_ZN5boost6threadC5INS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEEEOT_]+0x7ec): undefined reference to
boost::detail::thread_data_base::~thread_data_base()'/usr/bin/ld: /tmp/ccAzBIlv.o: in function
boost::thread::thread<boost::_bi::bind_t<void, boost::_mfi::mf0<void, HotkeyManager>, boost::_bi::list1<boost::_bi::value<HotkeyManager*> > > >(boost::_bi::bind_t<void, boost::_mfi::mf0<void, HotkeyManager>, boost::_bi::list1<boost::_bi::value<HotkeyManager*> > >&&)': hotkey.cpp:(.text._ZN5boost6threadC2INS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEEEOT_[_ZN5boost6threadC5INS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEEEOT_]+0x61): undefined reference to
vtable for boost::detail::thread_data_base'/usr/bin/ld: hotkey.cpp:(.text.ZN5boost6threadC2INS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEEEOT[ZN5boost6threadC5INS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEEEOT]+0x280): undefined reference to
boost::thread::start_thread_noexcept()' /usr/bin/ld: /tmp/ccAzBIlv.o: in function
std::_Rb_tree<unsigned int, std::pair<unsigned int const, boost::thread>, std::_Select1st<std::pair<unsigned int const, boost::thread> >, std::less, std::allocator<std::pair<unsigned int const, boost::thread> > >::_M_erase(std::_Rb_tree_node<std::pair<unsigned int const, boost::thread> >)':hotkey.cpp:(.text._ZNSt8_Rb_treeIjSt4pairIKjN5boost6threadEESt10_Select1stIS4_ESt4lessIjESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E[_ZNSt8_Rb_treeIjSt4pairIKjN5boost6threadEESt10_Select1stIS4_ESt4lessIjESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E]+0x3b): undefined reference to
boost::thread::detach()' /usr/bin/ld: /tmp/ccAzBIlv.o: in function
std::_Rb_tree_iterator<std::pair<unsigned int const, boost::thread> > std::_Rb_tree<unsigned int, std::pair<unsigned int const, boost::thread>, std::_Select1st<std::pair<unsigned int const, boost::thread> >, std::less, std::allocator<std::pair<unsigned int const, boost::thread> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<unsigned int const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<unsigned int const, boost::thread> >, std::piecewise_construct_t const&, std::tuple<unsigned int const&>&&, std::tuple<>&&)':hotkey.cpp:(.text.ZNSt8_Rb_treeIjSt4pairIKjN5boost6threadEESt10_Select1stIS4_ESt4lessIjESaIS4_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESF_IJEEEEESt17_Rb_tree_iteratorIS4_ESt23_Rb_tree_const_iteratorIS4_EDpOT[ZNSt8_Rb_treeIjSt4pairIKjN5boost6threadEESt10_Select1stIS4_ESt4lessIjESaIS4_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESF_IJEEEEESt17_Rb_tree_iteratorIS4_ESt23_Rb_tree_const_iteratorIS4_EDpOT]+0x42): undefined reference to
boost::thread::thread()' /usr/bin/ld: hotkey.cpp:(.text._ZNSt8_Rb_treeIjSt4pairIKjN5boost6threadEESt10_Select1stIS4_ESt4lessIjESaIS4_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESF_IJEEEEESt17_Rb_tree_iteratorIS4_ESt23_Rb_tree_const_iteratorIS4_EDpOT_[_ZNSt8_Rb_treeIjSt4pairIKjN5boost6threadEESt10_Select1stIS4_ESt4lessIjESaIS4_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS1_EESF_IJEEEEESt17_Rb_tree_iteratorIS4_ESt23_Rb_tree_const_iteratorIS4_EDpOT_]+0x13a): undefined reference to
boost::thread::detach()'/usr/bin/ld: /tmp/ccAzBIlv.o:(.data.rel.ro._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEEE[_ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13HotkeyManagerEENS2_5list1INS2_5valueIPS6_EEEEEEEE]+0x10): undefined reference to
typeinfo for boost::detail::thread_data_base' /usr/bin/ld: /tmp/ccAzBIlv.o:(.data.rel.ro._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEEE[_ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf2Iv13HotkeyManagerjNS_8functionIFvjEEEEENS2_5list3INS2_5valueIPS6_EENSC_IjEENSC_IS9_EEEEEEEE]+0x10): undefined reference to
typeinfo for boost::detail::thread_data_base'/usr/bin/ld: /tmp/ccTl2zJw.o: in function
Radar::Radar(GameManager&)': radar.cpp:(.text+0x1c6): undefined reference to
boost::thread::thread()'/usr/bin/ld: /tmp/ccTl2zJw.o: in function
Radar::~Radar()': radar.cpp:(.text+0x202): undefined reference to
boost::thread::detach()'/usr/bin/ld: /tmp/ccTl2zJw.o: in function
Radar::start()': radar.cpp:(.text+0x1116): undefined reference to
vtable for boost::detail::thread_data_base'/usr/bin/ld: radar.cpp:(.text+0x1443): undefined reference to
boost::thread::start_thread_noexcept()' /usr/bin/ld: radar.cpp:(.text+0x1454): undefined reference to
boost::thread::detach()'/usr/bin/ld: radar.cpp:(.text+0x14b4): undefined reference to
boost::thread::detach()' /usr/bin/ld: /tmp/ccTl2zJw.o: in function
boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Radar>, boost::_bi::list1<boost::_bi::value<Radar> > > >::~thread_data()':radar.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv5RadarEENS2_5list1INS2_5valueIPS6_EEEEEEED2Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv5RadarEENS2_5list1INS2_5valueIPS6_EEEEEEED5Ev]+0xf): undefined reference to
boost::detail::thread_data_base::~thread_data_base()' /usr/bin/ld: /tmp/ccTl2zJw.o: in function
boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Radar>, boost::_bi::list1<boost::_bi::value<Radar*> > > >::~thread_data()':radar.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv5RadarEENS2_5list1INS2_5valueIPS6_EEEEEEED0Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv5RadarEENS2_5list1INS2_5valueIPS6_EEEEEEED5Ev]+0x13): undefined reference to
boost::detail::thread_data_base::~thread_data_base()' /usr/bin/ld: /tmp/ccTl2zJw.o:(.data.rel.ro._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv5RadarEENS2_5list1INS2_5valueIPS6_EEEEEEEE[_ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv5RadarEENS2_5list1INS2_5valueIPS6_EEEEEEEE]+0x10): undefined reference to
typeinfo for boost::detail::thread_data_base'/usr/bin/ld: /tmp/ccgFq6us.o: in function
Clicker::Clicker(MemoryAccess&)': clicker.cpp:(.text+0xe): undefined reference to
XOpenDisplay'/usr/bin/ld: /tmp/ccgFq6us.o: in function
Clicker::xClick()': clicker.cpp:(.text+0x19f): undefined reference to
XQueryPointer'/usr/bin/ld: clicker.cpp:(.text+0x1d4): undefined reference to
XSendEvent' /usr/bin/ld: clicker.cpp:(.text+0x1dd): undefined reference to
XFlush'/usr/bin/ld: clicker.cpp:(.text+0x225): undefined reference to
XSendEvent' /usr/bin/ld: clicker.cpp:(.text+0x22e): undefined reference to
XFlush'collect2: error: ld returned 1 exit status
make: *** [Makefile:28: pengWin] Error 1
`
The text was updated successfully, but these errors were encountered: