[cfe-dev] clang and boost

lis li_shao1 at hotmail.com
Tue Nov 13 17:42:42 PST 2012


I am new to Clang. I try to use clang-2.9-mingw to build Boost_1_52_0. One
problem I have is that $(Includes) is not set when build with bjam. I tried
to workaround that by modifying clang-linux.jam to hard-code the include
path.

actions compile.c++.without-pth {
  "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES)
-I"C:\boost_1_52_0\boost_1_52_0\boost\compatibility\cpp_c_headers"
-I"C:\boost_1_52_0\boost_1_52_0" -I"C:\boost_1_52_0\boost_1_52_0\boost"
-I"C:\boost_1_52_0\boost_1_52_0\boost\tr1\tr1" -o "$(<)" "$(>)"
}

 This helped to get around some of the include path issues but I stuck with
the following message:

In file included from C:\boost_1_52_0\boost_1_52_0\boost\tr1\tr1/utility:19:
C:\boost_1_52_0\boost_1_52_0/boost/tr1/detail/config_all.hpp:161:12: fatal
error
: '../include/utility' file not found
#  include BOOST_TR1_STD_HEADER(utility)
           ^
C:\boost_1_52_0\boost_1_52_0/boost/tr1/detail/config_all.hpp:83:41: note:
instantiated from:
#     define BOOST_TR1_STD_HEADER(name) <../include/name>

My question is: What do I need to do to get Clang to set up the include path
correctly?



--
View this message in context: http://clang-developers.42468.n3.nabble.com/clang-and-boost-tp2788340p4028213.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list