This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: libstdc++-v3 build failure
- To: "'robertl at sco dot com'" <robertl at sco dot com>
- Subject: RE: libstdc++-v3 build failure
- From: Bruce Korb <bkorb at allegronetworks dot com>
- Date: Tue, 17 Apr 2001 10:37:22 -0700
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
Hi Robert,
> When I look in <unistd.h>, I find this horror of a construct:
>
> extern int acct(const char *);
> #if defined(__cplusplus) && !defined(_CFRONT_3_0)
> namespace std { extern "C++" void exit(int); } using std::exit;
> #else
> extern void exit(int);
> #endif
>
> Since g++ IS __cplusplus but isn't cfront (sigh) we pick up the former
> definition. Is this appropriate for G++? Should we fixinclude this
> bit of silliness away? If so, which should we whack?
Anything you like :-). Once you whack it, the whackery is only visible
with the matching version of the gcc compiler. Just strip the CFRONT junk:
select = "defined\(_CFRONT[A-Z0-9_]*\)"
c_fix = format;
c_fix_arg = "0";
though you may wish to strip it differently. :-)