Basically here is
what I ran into:
I'm trying to get
ht://Dig integrated into a product that is based on Orbix. Orbix's core
library liborbix.so contains a class deep down in it called Configuration.
Unfortunately, due to the lack of namespace support in compilers for MANY
production products there is a clash between libht.so and liborbix.so due to a
name mangling collision.
Anyway, Gilles had a
very good suggestion to add -DConfiguration=HTDIGConfiguration (or something
similar) to the CXXFLAGS. Now while this works for this case, I'm planning
on linking against the ht://Dig package. I do NOT however plan on shipping
a binary version of the ht://Dig. The solution I came up with seems to be
quite amicable.
Basically, I've
re-named Configuration to HTDIG_Configuration. BUT I've added a typedef
HTDIG_Configuration Configuration;
This allows for a
unique name for 'Configuration' while reducing the invasiveness of changing all
code references to Configuration to HTDIG_Configuration.
Could you kind folks
please take a look over it and tell me what you think?
Thanks for your
input.
--
David J. Graff
Broadvision/Atlanta - Principal
Consultant
Phone: (678) 427-5412
This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately.
David J Graff.vcf
