Namespaces on Solaris Sun Workshop compiler...

Nick Woods nwoods____pivia.com
Wed Sep 4 01:05:11 CEST 2002


Frank,

I'm using the Sun Workshop compiler version 6 update 2.  I'm not sure how many versions back namespace functionality started working well or even if everything works well now.  However, all of the agent++ code that I've tried with version 6 update 2 seems to work fine.

Thanks,

Nick

-----Original Message-----
From: Frank Fock [mailto:Frank.Fock____t-online.de]
Sent: Tuesday, September 03, 2002 4:03 PM
To: Nick Woods
Cc: agentpp-dl____agentpp.com
Subject: Re: Namespaces on Solaris Sun Workshop compiler...


Nick,

Which version of the SUN Workshop compiler are you
using? I had some trouble with name spaces and the CC
in the past. May be this has been fixed now. We just
wanted to be prudent...

Best regards,
Frank

Nick Woods wrote:
> 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