[C++][8.6] Błąd przy kompilowaniu.
Witam!
Posiadam source OTServ (0.6.3) r.5795 - edytowałem plik game.cpp i chciałem skompilować.
Wywaliło mi błędy:
Kod:
------------- Build: Debug Windows in otserv ---------------
Compiling: ..\actions.cpp
In file included from F:\Program Files (x86)\SOURCE\scheduler.h:25,
from F:\Program Files (x86)\SOURCE\game.h:33,
from F:\Program Files (x86)\SOURCE\actions.cpp:27:
F:\Program Files (x86)\SOURCE\tasks.h:59: error: using-declaration for non-member at class scope
F:\Program Files (x86)\SOURCE\tasks.h:59: error: expected `;' before "m_expiration"
F:\Program Files (x86)\SOURCE\tasks.h: In constructor `Task::Task(uint32_t, const boost::function<void ()(), std::allocator<void> >&)':
F:\Program Files (x86)\SOURCE\tasks.h:36: error: `m_expiration' was not declared in this scope
F:\Program Files (x86)\SOURCE\tasks.h:36: error: `get_system_time' is not a member of `boost'
F:\Program Files (x86)\SOURCE\tasks.h:36: error: `boost::posix_time' has not been declared
F:\Program Files (x86)\SOURCE\tasks.h:36: error: `milliseconds' was not declared in this scope
F:\Program Files (x86)\SOURCE\tasks.h:36: warning: unused variable 'm_expiration'
F:\Program Files (x86)\SOURCE\tasks.h:36: warning: unused variable 'milliseconds'
F:\Program Files (x86)\SOURCE\tasks.h: In constructor `Task::Task(const boost::function<void ()(), std::allocator<void> >&)':
F:\Program Files (x86)\SOURCE\tasks.h:39: error: class `Task' does not have any field named `m_expiration'
F:\Program Files (x86)\SOURCE\tasks.h:39: error: `boost::date_time' has not been declared
F:\Program Files (x86)\SOURCE\tasks.h:39: error: `not_a_date_time' was not declared in this scope
F:\Program Files (x86)\SOURCE\tasks.h:39: warning: unused variable 'not_a_date_time'
F:\Program Files (x86)\SOURCE\tasks.h: In member function `void Task::setDontExpire()':
F:\Program Files (x86)\SOURCE\tasks.h:48: error: `m_expiration' was not declared in this scope
F:\Program Files (x86)\SOURCE\tasks.h:48: error: `boost::date_time' has not been declared
F:\Program Files (x86)\SOURCE\tasks.h:48: error: `not_a_date_time' was not declared in this scope
F:\Program Files (x86)\SOURCE\tasks.h:48: warning: unused variable 'm_expiration'
F:\Program Files (x86)\SOURCE\tasks.h:48: warning: unused variable 'not_a_date_time'
F:\Program Files (x86)\SOURCE\tasks.h: In member function `bool Task::hasExpired() const':
F:\Program Files (x86)\SOURCE\tasks.h:51: error: `m_expiration' was not declared in this scope
F:\Program Files (x86)\SOURCE\tasks.h:51: error: `boost::date_time' has not been declared
F:\Program Files (x86)\SOURCE\tasks.h:51: error: `not_a_date_time' was not declared in this scope
F:\Program Files (x86)\SOURCE\tasks.h:51: warning: unused variable 'm_expiration'
F:\Program Files (x86)\SOURCE\tasks.h:51: warning: unused variable 'not_a_date_time'
F:\Program Files (x86)\SOURCE\tasks.h:53: error: `m_expiration' was not declared in this scope
F:\Program Files (x86)\SOURCE\tasks.h:53: error: `get_system_time' is not a member of `boost'
F:\Program Files (x86)\SOURCE\tasks.h:53: warning: unused variable 'm_expiration'
F:\Program Files (x86)\SOURCE\tasks.h: At global scope:
F:\Program Files (x86)\SOURCE\tasks.h:101: error: using-declaration for non-member at class scope
F:\Program Files (x86)\SOURCE\tasks.h:101: error: expected `;' before "m_taskSignal"
In file included from F:\Program Files (x86)\SOURCE\game.h:33,
from F:\Program Files (x86)\SOURCE\actions.cpp:27:
F:\Program Files (x86)\SOURCE\scheduler.h:42: error: using-declaration for non-member at class scope
F:\Program Files (x86)\SOURCE\scheduler.h:42: error: expected `;' before "getCycle"
F:\Program Files (x86)\SOURCE\scheduler.h:44: error: expected `;' before "bool"
F:\Program Files (x86)\SOURCE\scheduler.h: In member function `bool SchedulerTask::operator<(const SchedulerTask&) const':
F:\Program Files (x86)\SOURCE\scheduler.h:46: error: `getCycle' was not declared in this scope
F:\Program Files (x86)\SOURCE\scheduler.h:46: error: 'const class SchedulerTask' has no member named 'getCycle'
F:\Program Files (x86)\SOURCE\scheduler.h:46: warning: unused variable 'getCycle'
F:\Program Files (x86)\SOURCE\scheduler.h: At global scope:
F:\Program Files (x86)\SOURCE\scheduler.h:101: error: using-declaration for non-member at class scope
F:\Program Files (x86)\SOURCE\scheduler.h:101: error: expected `;' before "m_eventSignal"
Process terminated with status 1 (0 minutes, 1 seconds)
26 errors, 9 warnings
Edycja pliku game.cpp sprowadziła się do przetłumaczenia angielskich zwrotów na polskie.
Kompilowałem za pomocą Code::Blocks 10.05
Niezbyt orientuję się w programowaniu, a ten log stanowi dla mnie czarną magię. Jednak najwięcej przewija się w nim plików scheduler.h i tasks.h, których nie ruszałem.
Może ktoś nakierować mnie, w czym robię błąd?
Pozdrawiam
Zalbar.