[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ support (3)
From: |
Eric Blake |
Subject: |
Re: C++ support (3) |
Date: |
Wed, 1 Nov 2006 17:41:25 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Eric Blake <ebb9 <at> byu.net> writes:
> > Yes. Currently I see no point in making all the replacement modules compile
> > in C++ mode. Only those used in a build on a Linux system are needed,
> > because the purpose of type checking can be achieved on Linux.
>
> I'm trying that idea (using CC=g++ on Linux) on M4 before releasing m4
1.4.8.
Another candidate for fixing:
g++ -I. -g -O2 -MT strcasecmp.o -MD -MP -MF .deps/strcasecmp.Tpo -c -o
strcasecmp.o strcasecmp.c
In file included from mbchar.h:149,
from mbuiter.h:101,
from strcasecmp.c:29:
/usr/include/string.h:326: error: declaration of `int rpl_strcasecmp(const
char*, const char*) throw ()' throws different exceptions
strcase.h:34: error: than previous declaration `int rpl_strcasecmp(const char*,
const char*)'
/usr/include/string.h:330: error: declaration of `int strncasecmp(const char*,
const char*, size_t) throw ()' throws different exceptions
strcase.h:40: error: than previous declaration `int strncasecmp(const char*,
const char*, size_t)'
make[2]: *** [strcasecmp.o] Error 1
It looks like the strcase module needs to check in m4/strcase.m4 whether
<string.h> provides a definition for strcasecmp, and use that knowledge in
lib/strcase.h rather than blindly providing a conflicting rpl_strcasecmp. But
I'm not sure of the best approach for a patch.
--
Eric Blake