Re: aspell-0.50.5 on Tru64, config.cpp compile error + patch

Albert Chin <[email protected]>
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <[email protected]>
On Sat, Apr 03, 2004 at 10:15:32PM -0600, Tim Mooney wrote:
> In regard to: Re: [aspell-devel] aspell-0.50.5 on Tru64, config.cpp compile...:
> 
> >On Wed, Mar 31, 2004 at 06:15:45PM -0600, Tim Mooney wrote:
> >> There are also several warnings (most of them pretty harmless but
> >> easy to fix, the remainder worth looking at), and I'll send along
> >> patches for the ones I know how to fix when I have time (next week).
> >
> >How did you work around this:
> >cxx -DHAVE_CONFIG_H -I. -I. -I../common -I../common/
> >-I../interfaces/cc/ -I../modules/speller/default/
> >-I/opt/TWWfsw/ncurses54/include
> >-I/opt/TWWfsw/ncurses54/include/ncurses    -D__USE_STD_IOSTREAM -std
> >gnu -O2 -msym -readonly_strings -c -o aspell.o aspell.cpp
> >cxx: Error: ../common/errors.hpp, line 17: declaration is incompatible with
> >          previous "aerror_other" (declared at line 234 of
> >          "../interfaces/cc/aspell.h")
> >extern "C" const ErrorInfo * const aerror_other;
> >-----------------------------------^
> >...
> >
> >AspellErrorInfo == ErrorInfo. I think this is sloppy though. Only one
> >should be used.
> 
> As far as I can tell, they are exactly the same (except I think one of
> them is in namespace acommon and the other one isn't), so I don't know why
> the seeming duplication either.  I'm pretty poor in C++, though, so there
> could be lots of good reasons I don't comprehend.

Yeah, the errors.hpp defines are in namespace acommon. However, they
are extern "C". If something is in a namespace and has extern "C"
linkage, does this still confine the declaration to the namespace or
does it make it global in scope?

-- 
albert chin ([email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.