我不能使用外部库在Code :: Blocks上编译任何代码。无法编译使用任何外部库(Codeblocks)
我尝试使用升压拉姆达例如:
#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)) ===|
是在“基地”和“包括” /“LIB”目录故意的大/小写不一致? – pSoLT
感谢您的帮助。不,但我只是解决了这个问题,但没有奏效。 – VVV
这仍然是一样的错误?尝试使用“包含”而不是,并将其放在所有std包含之后。 –
pSoLT