sean@ubuntu:~/Documents/aBot$ g++ -std=c++11 -Iinclude -lboost_system -lboost_filesystem -lboost_date_time src/Bot.cpp src/main.cpp /tmp/cc0sFUp3.o: In function `__static_initialization_and_destruction_0(int, int)': Bot.cpp:(.text+0x2d38): undefined reference to `boost::system::generic_category()' Bot.cpp:(.text+0x2d44): undefined reference to `boost::system::generic_category()' Bot.cpp:(.text+0x2d50): undefined reference to `boost::system::system_category()' /tmp/cc0sFUp3.o: In function `boost::system::error_code::error_code()': Bot.cpp:(.text._ZN5boost6system10error_codeC2Ev[_ZN5boost6system10error_codeC5Ev]+0x17): undefined reference to `boost::system::system_category()' /tmp/cc0sFUp3.o: In function `boost::asio::error::get_system_category()': Bot.cpp:(.text._ZN5boost4asio5error19get_system_categoryEv[_ZN5boost4asio5error19get_system_categoryEv]+0x5): undefined reference to `boost::system::system_category()' /tmp/cc0sFUp3.o: In function `boost::asio::detail::posix_thread::~posix_thread()': Bot.cpp:(.text._ZN5boost4asio6detail12posix_threadD2Ev[_ZN5boost4asio6detail12posix_threadD5Ev]+0x26): undefined reference to `pthread_detach' /tmp/cc0sFUp3.o: In function `boost::asio::detail::posix_thread::join()': Bot.cpp:(.text._ZN5boost4asio6detail12posix_thread4joinEv[_ZN5boost4asio6detail12posix_thread4joinEv]+0x2b): undefined reference to `pthread_join' /tmp/cc0sFUp3.o: In function `boost::asio::detail::posix_thread::start_thread(boost::asio::detail::posix_thread::func_base*)': Bot.cpp:(.text._ZN5boost4asio6detail12posix_thread12start_threadEPNS2_9func_baseE[_ZN5boost4asio6detail12posix_thread12start_threadEPNS2_9func_baseE]+0x29): undefined reference to `pthread_create' /tmp/cc0sFUp3.o: In function `boost::filesystem::exists(boost::filesystem::path const&)': Bot.cpp:(.text._ZN5boost10filesystem6existsERKNS0_4pathE[_ZN5boost10filesystem6existsERKNS0_4pathE]+0x19): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)' /tmp/cc0sFUp3.o: In function `boost::filesystem::is_directory(boost::filesystem::path const&)': Bot.cpp:(.text._ZN5boost10filesystem12is_directoryERKNS0_4pathE[_ZN5boost10filesystem12is_directoryERKNS0_4pathE]+0x19): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)' /tmp/cc0sFUp3.o: In function `boost::filesystem::create_directories(boost::filesystem::path const&)': Bot.cpp:(.text._ZN5boost10filesystem18create_directoriesERKNS0_4pathE[_ZN5boost10filesystem18create_directoriesERKNS0_4pathE]+0x19): undefined reference to `boost::filesystem::detail::create_directories(boost::filesystem::path const&, boost::system::error_code*)' /tmp/cc0sFUp3.o: In function `boost::filesystem::last_write_time(boost::filesystem::path const&)': Bot.cpp:(.text._ZN5boost10filesystem15last_write_timeERKNS0_4pathE[_ZN5boost10filesystem15last_write_timeERKNS0_4pathE]+0x19): undefined reference to `boost::filesystem::detail::last_write_time(boost::filesystem::path const&, boost::system::error_code*)' /tmp/cc0sFUp3.o: In function `boost::filesystem::remove(boost::filesystem::path const&)': Bot.cpp:(.text._ZN5boost10filesystem6removeERKNS0_4pathE[_ZN5boost10filesystem6removeERKNS0_4pathE]+0x19): undefined reference to `boost::filesystem::detail::remove(boost::filesystem::path const&, boost::system::error_code*)' /tmp/cc0sFUp3.o: In function `boost::filesystem::detail::dir_itr_imp::~dir_itr_imp()': Bot.cpp:(.text._ZN5boost10filesystem6detail11dir_itr_impD2Ev[_ZN5boost10filesystem6detail11dir_itr_impD5Ev]+0x24): undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)' /tmp/cc0sFUp3.o: In function `boost::filesystem::directory_iterator::directory_iterator(boost::filesystem::path const&)': Bot.cpp:(.text._ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathE[_ZN5boost10filesystem18directory_iteratorC5ERKNS0_4pathE]+0x57): undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)' /tmp/cc0sFUp3.o: In function `boost::filesystem::directory_iterator::increment()': Bot.cpp:(.text._ZN5boost10filesystem18directory_iterator9incrementEv[_ZN5boost10filesystem18directory_iterator9incrementEv]+0x19): undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesystem::directory_iterator&, boost::system::error_code*)' /tmp/cc0sFUp3.o: In function `boost::filesystem::path::path(boost::filesystem::directory_entry const&, boost::enable_if::type>, void>::type*)': Bot.cpp:(.text._ZN5boost10filesystem4pathC2INS0_15directory_entryEEERKT_PNS_9enable_ifINS0_11path_traits11is_pathableINS_5decayIS4_E4typeEEEvE4typeE[_ZN5boost10filesystem4pathC5INS0_15directory_entryEEERKT_PNS_9enable_ifINS0_11path_traits11is_pathableINS_5decayIS4_E4typeEEEvE4typeE]+0x22): undefined reference to `boost::filesystem::path::codecvt()' Bot.cpp:(.text._ZN5boost10filesystem4pathC2INS0_15directory_entryEEERKT_PNS_9enable_ifINS0_11path_traits11is_pathableINS_5decayIS4_E4typeEEEvE4typeE[_ZN5boost10filesystem4pathC5INS0_15directory_entryEEERKT_PNS_9enable_ifINS0_11path_traits11is_pathableINS_5decayIS4_E4typeEEEvE4typeE]+0x38): undefined reference to `boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&, std::codecvt const&)' /tmp/cc0sFUp3.o: In function `boost::date_time::month_formatter, char>::format_month(boost::gregorian::greg_month const&, std::ostream&)': Bot.cpp:(.text._ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_10iso_formatIcEEcE12format_monthERKS3_RSo[_ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_10iso_formatIcEEcE12format_monthERKS3_RSo]+0x33): undefined reference to `boost::gregorian::greg_month::as_short_string() const' Bot.cpp:(.text._ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_10iso_formatIcEEcE12format_monthERKS3_RSo[_ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_10iso_formatIcEEcE12format_monthERKS3_RSo]+0x56): undefined reference to `boost::gregorian::greg_month::as_long_string() const' /tmp/ccx2DnfT.o: In function `__static_initialization_and_destruction_0(int, int)': main.cpp:(.text+0x32e): undefined reference to `boost::system::generic_category()' main.cpp:(.text+0x33a): undefined reference to `boost::system::generic_category()' main.cpp:(.text+0x346): undefined reference to `boost::system::system_category()' collect2: error: ld returned 1 exit status