Code :: Blocksで外部ライブラリを使用してコードをコンパイルできません。外部ライブラリ(コードブロック)を使用してコンパイルできません
私はブーストラムダ例を使用してみました:
#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'ディレクトリの大文字小文字の不一致は意図的ですか? – pSoLT
助けてくれてありがとう。いいえ、しかし、私はそれを修正し、それは動作しませんでした。 – VVV
これはまだ同じエラーですか?の代わりに "include"を使用して、すべてのstdがインクルードした後に配置してください。 –
pSoLT