Re: Header file error while using cc1plus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/5/21 11:01 AM, Saloni Garg via Gcc-help wrote:
> On Mon, Apr 5, 2021 at 8:42 PM Stefan Ring <stefanrin@xxxxxxxxx> wrote:
> 
>> On Mon, Apr 5, 2021 at 3:19 PM Saloni Garg via Gcc-help
>> <gcc-help@xxxxxxxxxxx> wrote:
>>>
>>> When I try to compile it with `cc1plus` via command :
>>> ./cc1plus -fanalyzer example8.cpp
>>
>> Why do you want to use `cc1plus` instead of `g++`?
>>
> I want to use the build without installing it. While using `xg++`, I get
> the following error:
> 
> xg++: fatal error: cannot execute ‘cc1plus’: execvp: No such file or
> directory
> compilation terminated.

I do this all of the time.  xg++ doesn't know where its cc1plus is, so
you need to tell it using the -B option.  For example:

linux% /path/to/gcc/builddir/gcc/xg++ -B/path/to/gcc/builddir/gcc ...

Peter




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux