如何为CodeBlocks安装boost?

时间:2012-05-19 02:24:26

标签: c++ codeblocks

  

可能重复:
  Boost library setup for Codeblocks

我想用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) << " " );
}

当我构建它时,它给了我一个错误列表: 错误:boost / lambda / lambda.hpp:没有这样的文件或目录 错误:'boost'尚未声明 ... 我能为这些错误做些什么?我的意思是如何设置“编译器和调试器”和“全局变量”。

0 个答案:

没有答案