[aspectc-user] RE: invalid declaration near token `dllexport'

Matthias Urban matthias.urban at pure-systems.com
Fri Aug 27 17:46:45 CEST 2004


Ext-Bil.Lewis at nokia.com wrote:
> Huh.
> This is what CPP expands it out to. And indeed, I did a search and
> found no additional definitions in any .h file.
> And it all ran before. (?!)
> -Bil

Maybe ac++ itself can help us. Please insert the following line in the 
source file you are weaving, right before the first header is included.

   #define __attribute__ +

And this line right after the last #include.

   int i = 1 __attribute__ 1;

If somewhere __attribute__ is redefined without an "#undef 
__attribute__" the following warning message is shown:

   file1:line: warning: Redefinition of macro `__attribute__'
   file2:line: previous definition here

If it is redefined using an #undef and then a #define the declaration of 
i will fail and an error message is shown.

Are you using a config file for ac++? If so, is the environment variable 
PUMA_CONFIG set correctly? And what are you defining in the config file?


Matthias Urban                          Phone: +49-391-544569-32
pure-systems GmbH                       Fax:   +49-391-544569-90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3136 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20040827/4352450f/attachment.bin>

More information about the aspectc-user mailing list