[cfe-dev] fatal error: 'algorithm' file not found

Krishanthan Krishnamoorthy krishan22 at hotmail.com
Fri Aug 22 19:03:24 PDT 2014


Hi All,

I tried the LibTooling example, and when I compile I got error like this :

[root at localhost Clang-tutorial-master]# sudo make
clang++ -I/home/krishan/llvm/tools/clang/include -I/home/krishan/buildllvm/tools/clang/include -I/home/krishan/llvm/include -I/home/krishan/buildllvm/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -ffunction-sections -fdata-sections -Wcast-qual -fno-rtti   -c -o tutorial1.o tutorial1.cpp
In file included from tutorial1.cpp:4:
In file included from /home/krishan/llvm/include/llvm/Support/raw_ostream.h:17:
/home/krishan/llvm/include/llvm/ADT/StringRef.h:13:10: fatal error: 'algorithm' file not found
#include <algorithm>
         ^
1 error generated.
make: *** [tutorial1.o] Error 1
[root at localhost Clang-tutorial-master]# 


Please help me on this, and give me some solution...

Thank-you

Krish
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140822/699f50ef/attachment.html>


More information about the cfe-dev mailing list