Code: Select all
g++ -fPIC -frtti -I../../include -O -c -o chathistory.o chathistory.cpp
In file included from ../../include/TextUtils.h:20,
from chathistory.cpp:5:
../../include/common.h:24:21: config.h: No such file or directory
In file included from ../../include/TextUtils.h:20,
from chathistory.cpp:5:
../../include/common.h:203: error: redefinition of `template<class comparable>
const comparable& std::max(const comparable&, const comparable&)'
/usr/include/c++/3.3/bits/stl_algobase.h:169: error: `template<class _Tp> const
_Tp& std::max(const _Tp&, const _Tp&)' previously declared here
../../include/common.h:217: error: redefinition of `template<class comparable>
const comparable& std::min(const comparable&, const comparable&)'
/usr/include/c++/3.3/bits/stl_algobase.h:149: error: `template<class _Tp> const
_Tp& std::min(const _Tp&, const _Tp&)' previously declared here
chathistory.cpp: In member function `virtual bool LastChatCommand::handle(int,
bzApiString, bzApiString, bzAPIStringList*)':
chathistory.cpp:113: warning: cannot pass objects of non-POD type `struct
std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
through `...'; call will abort at runtime
/usr/include/c++/3.3/bits/basic_string.h: In member function `int
std::basic_string<_CharT, _Traits, _Alloc>::compare(const
std::basic_string<_CharT, _Traits, _Alloc>&) const [with _CharT = char,
_Traits = std::char_traits<char>, _Alloc = std::allocator<char>]':
/usr/include/c++/3.3/bits/basic_string.h:948: instantiated from `bool std::operator<(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
/usr/include/c++/3.3/bits/stl_function.h:197: instantiated from `bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = std::string]'
/usr/include/c++/3.3/bits/stl_tree.h:1271: instantiated from `std::_Rb_tree_iterator<_Val, _Val&, _Val*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::find(const _Key&) [with _Key = std::string, _Val = std::pair<const std::string, tvChatHistory>, _KeyOfValue = std::_Select1st<std::pair<const std::string, tvChatHistory> >, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, tvChatHistory> >]'
/usr/include/c++/3.3/bits/stl_map.h:468: instantiated from `typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::find(const _Key&) [with _Key = std::string, _Tp = tvChatHistory, _Compare = std::less<std::string>, _Alloc = std::allocator<std::pair<const std::string, tvChatHistory> >]'
chathistory.cpp:95: instantiated from here
/usr/include/c++/3.3/bits/basic_string.h:830: error: call of overloaded `min(
size_t&, size_t&)' is ambiguous
/usr/include/c++/3.3/bits/stl_algobase.h:149: error: candidates are: const _Tp&
std::min(const _Tp&, const _Tp&) [with _Tp = size_t]
../../include/common.h:217: error: const comparable&
std::min(const comparable&, const comparable&) [with comparable = size_t]
make: *** [chathistory.o] Error 1