[aspectc-user] Multiply Defined Operator in 0.9.1
Gary Duzan
gduzan at bbn.com
Thu Mar 10 22:20:19 CET 2005
Using a fresh download of 0.9.1 for Linux, I tried running some
existing code through ag++ as a sanity test and came up with a bunch of
"operator >>= already defined" errors:
===========================================================================
gduzan at toulouse.bbn.com { ~/quo2/DRM/DRM_Services/ApplicationStringManager/Simple-BBN } % /home/gduzan/local/aspectc++-0.9.1/ag++ -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO/CIAO -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO/CIAO/ciao -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO/orbsvcs/orbsvcs -I/home/gduzan/quo2/DRM/DRM_Services/rss -I/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO/tao -I../../common/Simple-Vandy -I../../PoolManager/Simple-LMATL -I../../NodeProvisioner/Simple-Vandy -I../../rss/idl -I../../BandwidthBroker/idl -I/home/gduzan/quo2/DRM/Middleware/log4cplus/include -!
I/home/gduzan/quo2/DRM/Middleware/xerces/include -I/home/gduzan/quo2/DRM/DRM_Services/XML/cpp_handlers -I/home/gduzan/quo2/DRM/DRM_Services/XML/cpp_handlers/Altova -I/home/gduzan/quo2/DRM/DRM_Services/XML/cpp_handlers/AltovaXML -I/home/gduzan/quo2/DRM/DRM_Services/XML/cpp_handlers/include -I/home/gduzan/quo2/DRM/DRM_Services/Security/Simple-SRC -I../../common/mr -I../../common/logging -DXML_USE_PTHREADS -DAPPLICATIONSTRINGMANAGERGLOBAL_EXEC_BUILD_DLL -fPIC PoolLivenessMonitor.cpp
/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO/orbsvcs/orbsvcs/SecurityC.h:1859: error: `operator >>=' already defined
/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO/tao/Any.i:309: previously defined here
/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO/orbsvcs/orbsvcs/SecurityC.h:1860: error: `operator >>=' already defined
/home/gduzan/quo2/DRM/Middleware/ACE_wrappers/TAO/orbsvcs/orbsvcs/SecurityC.h:1867: error: `operator >>=' already defined
[ ... ]
===========================================================================
The code from Any.i looks like:
===========================================================================
309 ACE_INLINE CORBA::Boolean
310 operator >>= (const CORBA::Any_var &lhs, CORBA::Any::to_object rhs)
311 {
312 return lhs.in () >>= rhs;
313 }
===========================================================================
and the code in SecurityC.h looks like:
===========================================================================
1859 TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, Security::Opaque *&); // deprecated
1860 TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, const Security::Opaque *&);
1861
1862 // TAO_IDL - Generated from
1863 // be/be_visitor_structure/any_op_ch.cpp:52
1864
1865 TAO_Security_Export void operator<<= (CORBA::Any &, const Security::ExtensibleFamily &); // copying version
1866 TAO_Security_Export void operator<<= (CORBA::Any &, Security::ExtensibleFamily*); // noncopying version
1867 TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, Security::ExtensibleFamily *&); // deprecated
===========================================================================
Any ideas why this is happening?
Gary Duzan
BBN Technologies
More information about the aspectc-user
mailing list