This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch 4.6] In system.h, wrap include of C++ header in 'extern C++'
On Fri, Jun 15, 2012 at 9:18 AM, Duncan Sands <baldrick@free.fr> wrote:
> Hi Gabriel,
>
>
>>> it defines fancy_abort. ?Not wrapping system.h in extern C results in
>>> ?undefined symbol: _Z11fancy_abortPKciS0_
>>> when loading the plugin.
>>
>>
>> If you want fancy_abort to have a C language specification, that is
>> what you should declare as such.
>
>
> my code isn't using fancy_abort directly, it is including GCC headers that
> use
> gcc_assert (which turns into fancy_abort).
>
> Ciao, Duncan.
Richard just reminded me that we have two fancy_aborts.
Could you tell which one your code is indirectly using?