[cfe-dev] Wrong include paths when building clang

Richtarsky, Martin martin.richtarsky at sap.com
Sat Mar 28 12:32:17 PDT 2015


You can use  --gcc-toolchain=/path/to/gcc/root

Best regards,
Martin

-----Original Message-----
From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of Andy Jewell
Sent: Samstag, 28. März 2015 15:56
To: cfe-dev at cs.uiuc.edu
Subject: [cfe-dev] Wrong include paths when building clang

My apologies in advance if I’m posting to the wrong group.

I’m building clang from the latest svn sources

I’m building it with gcc 4.8.2 via 'cmake -DCMAKE_BUILD_TYPE=Release’

gcc 4.4.7 also exists on the same machine

g++ -print-search-dirs reports things of the form .../4.8.2/...

However, after I build clang, clang++ -print-search-dirs reports things of the form .../4.4.7/...

So, of course, my c++11 code won't build because the 4.4.7 includes don't compile with std=c++11


How is clang deciding on the 4.4.7 headers?
How can I tell it to use the 4.8.2 headers?


many thanks,
Andy Jewell


_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list