【发布时间】:2017-05-16 08:15:09
【问题描述】:
我无法使用 Code::Blocks 上的外部库编译任何代码。
我尝试使用 boost lambda 示例:
#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) << " " );
}
我为库设置了一个全局环境变量: https://imgur.com/a/maiRC ...而且我认为我正确设置了构建选项。 https://imgur.com/a/BP0Xk
但是我的构建检测不到头文件:
||=== Build: Debug in boost test (compiler: GNU GCC Compiler) ===|
C:\Documents and Settings\Charlotte\My Documents\wxTest\boost test\boo.cpp|1|fatal error: boost/lambda/lambda.hpp: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
【问题讨论】:
-
'base' 和 'include'/'lib' 目录中的大小写不匹配是故意的吗?
-
感谢您的帮助。不,但我刚刚解决了这个问题,但它没有用。
-
这还是同样的错误吗?尝试使用“include”而不是
并将其放在所有 std 包含之后。
标签: c++ windows compiler-errors codeblocks