Tôi đã viết đoạn mã sautăng vấn đề trong windows 7
#include <iostream>
#include <boost/asio.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/filesystem.hpp>
#include <boost/system/windows_error.hpp>
using namespace boost::system;
int main(){
boost::asio::io_service io;
boost::asio::deadline_timer t(io,boost::posix_time::seconds(5));
t.wait();
std::cout<<"hello world";
return 0;
}
và tôi nhận được lỗi sau:
1>LINK : fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_44.lib'
Tôi không biết làm thế nào và những gì làm, bạn có thể vui lòng giải thích những gì đang xảy ra và những bước nào tôi có thể thực hiện để khắc phục?
@algorithms: Bạn đang sử dụng MSVC++ hay g ++? –
visual C++ MSVC 2010 tôi đã xây dựng tất cả thư viện của phiên bản boost 1.44 – user439547
@algorithms: Xem câu trả lời của tôi. :-) –