Search code examples
c++boostboost-asio

"xtime: ambiguous symbol" error, when including <boost/asio.hpp>


As said in the title, when I'm trying to include asio.hpp from boost I get this error:

'xtime': ambiguous symbol (compiling source file FILEPATH)
note: could be 'xtime'    (compiling source file FILEPATH)
or   'boost::xtime'       (compiling source file FILEPATH)

I have read that this issue can be linked with "using namespace" but after removing all this statements in my project error still pops up. Do you have any idea what else than "using namespace" can cause this problem?


Solution

  • As sehe mentioned in comments, reordering include statements in FILEPATH have resolved the problem.