Re: [gnomemm] Re: libbonobomm



On Sat, 2002-06-29 at 17:15, Felix Breuer wrote:
> I got round to take a look at this problem again and found a solution.
> Apparently naming a member of a structure "namespace" confuses the
> compiler, as this is also a keyword. I do not know whether this is
> correct, as this is a C and not a C++ file, but nonetheless I had this
> problem with GCC version 2.95 and 3.0. 

I'm using gcc 2.96RH and it seems to be OK. I think that the C files are
parsed as C, and we don't need to use that keyword in the C++. It is
annoying however - somebody changed it from "ns" to "namespace"
recently. It could have been prevented if the person who chose "ns" had
added a comment. 

> I do not know how to create a patch file, but I will just paste the
> output of `cvs diff -r cpp` here. I hope it is not too inconvenient that
> way:

You are almost there. Just direct it to a text file like so, and please
use this format option.

cvs diff -up > cpp

Then I'll investigate.

-- 
Murray Cumming
murrayc@usa.net
www.murrayc.com




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