1

可能重复:
代码块的 Boost 库设置

我想用boost写一个程序。实际上这是一个来自 Boost Getting Started 网页的程序。这是 :

#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) << " " );
}

当我构建它时,它给了我一个错误列表: error: boost/lambda/lambda.hpp: No such file or directory error: 'boost' has not been declared ... 对于这些错误我该怎么办?我的意思是如何设置“编译器和调试器”和“全局变量”。

4

0 回答 0