Re: [gnomemm] Re: libbonobomm
- From: Felix Breuer <felix fbreuer de>
- To: orbit <orbit-list gnome org>
- Cc: gnomemm-list <gnomemm-list gnome org>
- Subject: Re: [gnomemm] Re: libbonobomm
- Date: 29 Jun 2002 18:15:30 +0200
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 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:
cvs server: Diffing .
cvs server: Diffing docs
cvs server: Diffing docs/devel
cvs server: Diffing docs/internals
cvs server: Diffing include
cvs server: Diffing include/orbit
cvs server: Diffing include/orbit/GIOP
cvs server: Diffing include/orbit/dynamic
cvs server: Diffing include/orbit/orb-core
cvs server: Diffing include/orbit/poa
cvs server: Diffing include/orbit/util
cvs server: Diffing src
cvs server: Diffing src/idl
cvs server: Diffing src/idl/CORBA
cvs server: Diffing src/idl/CORBA_PIDL
cvs server: Diffing src/idl/interop
cvs server: Diffing src/idl/misc
cvs server: Diffing src/idl-compiler
Index: src/idl-compiler/orbit-idl-driver.c
===================================================================
RCS file: /cvs/gnome/ORBit2/src/idl-compiler/orbit-idl-driver.c,v
retrieving revision 1.23.2.2
diff -r1.23.2.2 orbit-idl-driver.c
42c42
< IDL_ns namespace;
---
> IDL_ns ns;
53c53
< &tree, &namespace,
---
> &tree, &ns,
62c62
< rinfo->namespace = namespace;
---
> rinfo->ns = ns;
81c81
< orbit_idl_tree_populate(otree.tree, namespace, &otree, TRUE);
---
> orbit_idl_tree_populate(otree.tree, ns, &otree, TRUE);
89c89
< orbit_idl_tree_populate(otree.tree, namespace, &otree, FALSE);
---
> orbit_idl_tree_populate(otree.tree, ns, &otree, FALSE);
Index: src/idl-compiler/orbit-idl3-types.h
===================================================================
RCS file: /cvs/gnome/ORBit2/src/idl-compiler/orbit-idl3-types.h,v
retrieving revision 1.16.2.3
diff -r1.16.2.3 orbit-idl3-types.h
45c45
< IDL_ns namespace;
---
> IDL_ns ns;
cvs server: Diffing src/idl-compiler/cpp
cvs server: Diffing src/idl-compiler/cpp/types
cvs server: Diffing src/orb
cvs server: Diffing src/orb/GIOP
cvs server: Diffing src/orb/dynamic
cvs server: Diffing src/orb/include
cvs server: Diffing src/orb/orb-core
cvs server: Diffing src/orb/poa
cvs server: Diffing src/orb/util
cvs server: Diffing src/orb-cpp
cvs server: Diffing src/services
cvs server: Diffing src/services/name
cvs server: Diffing test
cvs server: Diffing test/cpp
cvs server: Diffing test/cpp/helloworld
cvs server: Diffing test/cpp/helloworld/generated
cvs server: Diffing test/cpp/struct-simple
cvs server: Diffing test/cpp/struct-simple/generated
cvs server: Diffing test/everything
cvs server: Diffing test/inhibit
cvs server: Diffing test/poa
On Sun, 2002-06-23 at 17:47, Murray Cumming wrote:
> On Sun, 2002-06-23 at 20:19, Felix Breuer wrote:
> > after doing
> > cvs co -r cpp ORBit2
> > and then
> > ./autogen.sh
> > make
> > I get the following compile error:
> >
> > g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -I../../..
> > -I../../../include -I../../.. -I../../../include -DVERSION=\"2.4.0\"
> > -DORBIT2_INTERNAL_API -Wall -Wunused -Wmissing-prototypes
> > -Wmissing-declarations -I/garnome/include/libIDL-2.0
> > -I/garnome/include/glib-2.0 -I/garnome/lib/glib-2.0/include -g -O2 -c
> > main.cc -fPIC -DPIC -o .libs/main.lo
> > In file included from ../orbit-idl2.h:4,
> > from main.cc:31:
> > ../orbit-idl3-types.h:45: parse error before `namespace'
> >
> > when compiling
> > /src/idl-compiler/cpp/main.cc
>
> I believe that I fixed this recently. Maybe you should try again now
> that anoncvs has updated. If it's still a problem then you should
> compare the relevant cpp files with HEAD and create a patch.
>
> --
> Murray Cumming
> murrayc@usa.net
> www.murrayc.com
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]