dat*_*ili 3 c++ boost visual-studio
我试图从Boost库网站上的信息编写我的第一个Boost程序.这是代码:
#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>
int main()
{
using namespace boost::lambda;
typedef std::istream_iterator<int> in;
std::for_each(
in(std::cin), in(), std::cout << (_1 * 3) << " " );
}
Run Code Online (Sandbox Code Playgroud)
它向我显示了这个错误:
1>------ Build started: Project: boost_librarys, Configuration: Debug Win32 ------
1> boost_librarys.cpp
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)
如何解决这个错误?