Re: [boost] Asio multithreaded server

23 Nov
2006
23 Nov
'06
1:42 p.m.
Christopher Kohlhoff wrote:
I'm trying the CVS version of boost (using asio from there) with VC7.1 but I got a multiple definition link error: stdafx.obj : error LNK2005: "struct arg<1>::arg<1> & boost::asio::placeholders::`anonymous namespace'::error" (?error@?A0x14d8013b@placeholders@asio@boost@@3AAU?$arg@$00@4@A) already defined in server.obj Debug/HttpServer.exe : fatal error LNK1169: one or more multiply defined symbols found void server::accept_handler(const boost::system::error_code &e) { } void server::accept() { m_acceptor.async_accept(m_connection->getSocket(), boost::bind(&server::accept_handler, this, boost::asio::placeholders::error)); } Am I missing anything?
6784
Age (days ago)
6785
Last active (days ago)
3 comments
2 participants
participants (2)
-
berserker_r
-
Christopher Kohlhoff