[aspectc-user] (no subject)

Danilo Beuche danilo.beuche at pure-systems.com
Mon Sep 8 15:45:02 CEST 2003


Hi,

Green Bryan - bgreen wrote:
> I am trying to use aspectc++ 7.2 with VC++ 6.0.  I have a little test
> program using string:
> 
> #include <string>
> #include <iostream>
> 
> class Test
> {
>   public:
>         Test(){};
>         std::string getName(){return theName;}
>         void setName(const std::string& name){theName=name;}
>   private:
>         std::string theName;
> };
> 
> 
> 
> 
> int main() {
>   Test a;
> 
>   a.setName("Bryan");
>   std::cout << a.getName() << std::endl;
> }
> 
> 
> 
> I try:
> 
> ac++ -I"C:\Program Files\Microsoft Visual Studio\VC98\Include" -a Action.ah
> -c main.cpp
> 
> and these are the errors:
> C:/Program Files/Microsoft Visual Studio/VC98/Include/xstring:108: error:
> redefinition of 'append'
> C:/Program Files/Microsoft Visual Studio/VC98/Include/xstring:100:
> previously defined here
> 

The problem is probably due to some missing #define for ac++. Please 
have a look in the specified file  C:/Program Files/Microsoft Visual 
Studio/VC98/Include/xstring around line 100 for any suspicious #ifdef 
statement(s).
Add the required defines either to your command line or to the 
PUMA_CONFIG file.

Please make sure that you use the right PUMA_CONFIG (pumavc7.cfg)!

Regards,
	Danilo



-- 
Danilo Beuche                           Phone: +49-391-54456910
pure-systems GmbH                       Fax:   +49-391-54456990




More information about the aspectc-user mailing list