How to change clang default search path ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to change clang default search path ?

Dongsheng Song
Hi all,

I'm trying do test my llvm and clang 2.8 i686-pc-mingw32 build, why clang do not use my
path list?

C:\Program Files\LLVM\bin>clang++ -v -fno-use-cxa-atexit  -O2 -o h.exe Hello.cpp

clang version 2.8 (branches/release_28)
Target: i686-pc-mingw32
Thread model: posix
 "C:/Program Files/LLVM/bin/clang++.exe" -cc1 -triple i686-pc-mingw32 -S -disable-free -main-file-name Hello.cpp -mrelocation-model static
-mdisable-fp-elim -mconstructor-aliases -v -resource-dir C:/Program Files/LLVM/lib/clang/2.8 -O2 -ferror-limit 19 -fmessage-length 80
-fexceptions -fno-use-cxa-atexit -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o C:/DOCUME~1/SONGDO~1/LOCALS~1/Temp/cc-000000.s -x c++ Hello.cpp
clang -cc1 version 2.8 based upon llvm 2.8 hosted on i686-pc-mingw32
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.5.0/include"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.5.0/include/c++"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.5.0/include/c++/mingw32"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.5.0/include/c++/backward"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.4.0/include"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.4.0/include/c++"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.4.0/include/c++/mingw32"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.4.0/include/c++/backward"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.3.0/include"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.3.0/include/c++"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.3.0/include/c++/mingw32"
ignoring nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.3.0/include/c++/backward"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "c:/mingw/include"
ignoring nonexistent directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 C:/Program Files/LLVM/lib/clang/2.8/include
End of search list.
Hello.cpp:2:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.

My correct path is:
C:\gcc-4.5-mingw32\i686-pc-mingw32\include
C:\gcc-4.5-mingw32\include\c++\4.5.2
C:\gcc-4.5-mingw32\include\c++\4.5.2\i686-pc-mingw32
C:\gcc-4.5-mingw32\include\c++\4.5.2\backward

How can I change the clang default include/lib path list ?

Regards,
Dongsheng


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

signature.asc (499 bytes) Download Attachment