#include <iostream>
#include <boost/asio.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
int main()
{
boost::asio::io_service io;
boost::asio::deadline_timer t(io, boost::posix_time::seconds(5));
t.wait();
std::cout << "Hello, world!\n";
return 0;
}
上面是boost文档自带的代码,编译出现错误。代码是不需要链接libboost_system-vc80-mt-gd-1_35.lib,为什么还出现这样的错误呢?他默认连接?知道的,恢复一下:)