我不能使用外部庫在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