[cfe-dev] Getting clang header search path

Craig Tenenbaum zarathustra.zoroaster at gmail.com
Thu Aug 14 21:21:49 PDT 2014


In this case, the clang binary needs even just a cursory file name to get
far enough into its logic to output the info you want. Since you seem to be
in Windows, try the following (warning: I'm a Linux user and only know this
because I googled it):

clang++ -E -v -### -x c++ NUL

If you're using  the powershell, I think you can substitute '$nul' (no
apostrophes) for NUL


On Fri, Aug 15, 2014 at 12:10 AM, Edward Diener <
eldlistmailingz at tropicsoft.com> wrote:

> On 8/14/2014 11:31 PM, Nikola Smiljanic wrote:
>
>> -v does if you give it a file.
>>
>
> What is the purpose of the 'file' that you pass to it ?
>
>
>>
>> On Fri, Aug 15, 2014 at 1:15 PM, Edward Diener
>> <eldlistmailingz at tropicsoft.com
>> <mailto:eldlistmailingz at tropicsoft.com>> wrote:
>>
>>     On 8/14/2014 9:14 PM, Nikola Smiljanic wrote:
>>
>>         Nope, it's -v
>>
>>
>>     I do not think so:
>>
>>         C:\Programming\VersionControl\__bninja_installed_clang\bin>_
>> _clang++
>>
>>         -v
>>         clang version 3.6.0 (215674)
>>         Target: i686-pc-windows-gnu
>>         Thread model: posix
>>
>>         C:\Programming\VersionControl\__bninja_installed_clang\bin>_
>> _clang
>>
>>         -v
>>         clang version 3.6.0 (215674)
>>         Target: i686-pc-windows-gnu
>>         Thread model: posix
>>
>>         C:\Programming\VersionControl\__bninja_installed_clang\bin>_
>> _clang++
>>
>>         -###
>>         clang version 3.6.0 (215674)
>>         Target: i686-pc-windows-gnu
>>         Thread model: posix
>>
>>         C:\Programming\VersionControl\__bninja_installed_clang\bin>_
>> _clang
>>
>>         -###
>>         clang version 3.6.0 (215674)
>>         Target: i686-pc-windows-gnu
>>         Thread model: posix
>>
>>
>>     None of these return the header search path.
>>
>>
>>
>>         On Fri, Aug 15, 2014 at 11:12 AM, Nikola Smiljanic
>>         <popizdeh at gmail.com
>>         <mailto:popizdeh at gmail.com>
>>         <mailto:popizdeh at gmail.com
>>
>>         <mailto:popizdeh at gmail.com>>> wrote:
>>
>>              -###
>>
>>
>>              On Fri, Aug 15, 2014 at 9:16 AM, Edward Diener
>>              <eldlistmailingz at tropicsoft.__com
>>         <mailto:eldlistmailingz at tropicsoft.com>
>>              <mailto:eldlistmailingz at __tropicsoft.com
>>
>>         <mailto:eldlistmailingz at tropicsoft.com>>>
>>         wrote:
>>
>>                  What is the clang command that shows me the header
>>         search path ?
>>
>>                  I built the latest clang on Windows targeted at gcc using
>>                  mingw64/gcc4.9.1 32-bit, which is in the PATH. But when I
>>                  execute clang it is not finding the C++ header files.
>>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140815/0c34fe9a/attachment.html>


More information about the cfe-dev mailing list