Re: C++ Bindings Generate static const Code that will not Compile
- From: Bowie Owens <bowie owens csiro au>
- To: "Stephen A. Witt" <sawitt electra rsc raytheon com>, lgust verizon net
- Cc: orbitcpp-list gnome org
- Subject: Re: C++ Bindings Generate static const Code that will not Compile
- Date: Wed, 26 Nov 2003 10:04:06 +1100
Bowie Owens wrote:
That all looks pretty reasonable. I was hoping the quick fix would
work (it does for me and I'm using GCC 3.2). Looks like it doesn't.
I'll just have to go through and fix things properly. Which will
probably be for the best in the long run. I'll get back to you when I
have a patch in CVS.
I have just added a more comprehensive patch to CVS which cuases string
constants to be declared in the .h file and defined in the .cc file:
2003-11-26 Bowie Owens <bowie owens csiro au>
* orbitcpp/idl-compiler/pass_xlate.cc
* orbitcpp/idl-compiler/types/IDLCompound.h
* orbitcpp/idl-compiler/types/IDLModule.h
* orbitcpp/idl-compiler/types/IDLScope.h
* orbitcpp/idl-compiler/types/IDLSequence.cc
* orbitcpp/idl-compiler/types/IDLSequence.h
* orbitcpp/idl-compiler/types/IDLSimpleType.cc
* orbitcpp/idl-compiler/types/IDLSimpleType.h
* orbitcpp/idl-compiler/types/IDLString.cc
* orbitcpp/idl-compiler/types/IDLString.h
* orbitcpp/idl-compiler/types/IDLType.cc
* orbitcpp/idl-compiler/types/IDLType.h
* orbitcpp/idl-compiler/types/IDLTypedef.cc
* orbitcpp/idl-compiler/types/IDLTypedef.h
* orbitcpp/idl-compiler/types/IDLUnion.h
* orbitcpp/idl-compiler/types/IDLUserDefScopeType.h
* orbitcpp/idl-compiler/types/IDLVoid.cc
* orbitcpp/idl-compiler/types/IDLVoid.h:
Declare string constants in .h but define them in .cc. Required
passing module stream and scope to const_decl_write and adding
a new virtual function to IDLScope.
Please update to the latest version in CVS and confirm that this fixes
the problem. I have only split the declaration/definition for string
constants, let me know if you run into the same problem with other types.
--
Bowie Owens
CSIRO Mathematical & Information Sciences
phone : +61 3 9545 8055
fax : +61 3 9545 8080
mobile : 0425 729 875
email : Bowie Owens csiro au
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]