Thanks Xin Huang. It worked -- View this message in context: http://clang-developers.42468.n3.nabble.com/How-to-set-project-root-directory-while-compiling-a-file-using-Clang-tp4042183p4042185.html Sent from the Clang Developers mailing list archive at Nabble.com.