Namespaces on Solaris Sun Workshop compiler...
Nick Woods
nwoods____pivia.com
Tue Sep 3 20:29:26 CEST 2002
I have been using the agent++ library for a while now and recently
downloaded the latest updates to the libraries. When I tried building
my application again with the new libraries compiled with default
settings I ran into problems. I previously had been using and relying
on namespaces within the library when using the Sun Workshop compiler on
Solaris. Recently the following ifdef was added around the
AGENTPP_NAMESPACE define at the end of agent++.h:
#ifdef __GNUC__
#if (__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 91))
#define AGENTPP_NAMESPACE
#endif
#endif
The previous versions only had the "#define AGENTPP_NAMESPACE" so I
didn't have the problem. It is easy to comment out the #ifdef lines for
my purposes, but since the Sun compiler is fully namespace compliant as
far as I know wouldn't it make sense to enable it for that compiler by
default as well? Less potential conflicts, etc.?
Thanks,
Nick
More information about the AGENTPP
mailing list