• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Error compiling on Debian [ Tags Rev 1038 ]

kofel

Quietly
Joined
Aug 19, 2007
Messages
74
Reaction score
1
Code:
tasks.h:75: error: 'condition_variable' in namespace 'boost' does not name a type
scheduler.h:42: error: 'system_time' in namespace 'boost' does not name a type
scheduler.h:56: error: 'system_time' in namespace 'boost' does not name a type
scheduler.h: In member function 'bool SchedulerTask::operator<(const SchedulerTask&) const':
scheduler.h:46: error: 'getCycle' was not declared in this scope
scheduler.h:46: error: 'const class SchedulerTask' has no member named 'getCycle'
scheduler.h: In constructor 'SchedulerTask::SchedulerTask(uint32_t, boost::function<void ()(), std::allocator<void> >)':
scheduler.h:52: error: 'm_cycle' was not declared in this scope
scheduler.h:52: error: 'get_system_time' is not a member of 'boost'
scheduler.h:52: error: 'boost::posix_time' has not been declared
scheduler.h: At global scope:
scheduler.h:101: error: 'condition_variable' in namespace 'boost' does not name a type
I think some libaries in missing, Talaturen can you update a README file with new libaries?

Yours,
Kofel
 
kofel, i found this erro too, look.

sql-mysql -llua5.1-sql-sqlite -ldl -lboost_system
otserv.o: In function `main':
otserv.cpp:(.text+0x2ca7): undefined reference to `boost::detail::get_current_thread_data()'
otserv.o: In function `boost::condition_variable::wait(boost::unique_lock<boost::mutex>&)':
otserv.cpp:(.text._ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE[boost::condition_variable::wait(boost::unique_lock<boost::mutex>&)]+0x13): undefined reference to `boost::detail::get_current_thread_data()'
scheduler.o: In function `Scheduler::schedulerThread(void*)':
scheduler.cpp:(.text+0xdfb): undefined reference to `boost::detail::get_current_thread_data()'
scheduler.o: In function `boost::thread::thread<boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > > >(boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > >)':
scheduler.cpp:(.text._ZN5boost6threadC1INS_3_bi6bind_tIvPFvPvENS2_5list1INS2_5valueIS4_EEEEEEEET_[boost::thread::thread<boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > > >(boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > >)]+0x46f): undefined reference to `boost::thread::start_thread()'
scheduler.o: In function `boost::condition_variable::timed_wait(boost::unique_lock<boost::mutex>&, boost::posix_time::ptime const&)':
scheduler.cpp:(.text._ZN5boost18condition_variable10timed_waitERNS_11unique_lockINS_5mutexEEERKNS_10posix_time5ptimeE[boost::condition_variable::timed_wait(boost::unique_lock<boost::mutex>&, boost::posix_time::ptime const&)]+0x10): undefined reference to `boost::detail::get_current_thread_data()'
tasks.o: In function `Dispatcher::dispatcherThread(void*)':
tasks.cpp:(.text+0x96c): undefined reference to `boost::detail::get_current_thread_data()'
collect2: ld returned 1 exit status
make: *** [theforgottenserver] Error 1
 
Last edited:
Back
Top