WG: [aspectc-user] problem with MinGW
Blaschke, Georg
Georg.Blaschke at 3SOFT.de
Tue Dec 20 15:15:20 CET 2005
-----Ursprüngliche Nachricht-----
Von: Blaschke, Georg
Gesendet: Freitag, 16. Dezember 2005 13:04
An: 'gabrielalexm at yahoo.com'
Cc: aspectc-user at aspectc.org
Betreff: AW: [aspectc-user] problem with MinGW
Hi,
Within the include file <path to mingw>/include/_mingw.h the __attribute__ statement is redefined. Unfortunatly the ac++ pareser has a problem with this redefinition. I still have to figure out what's the real reason.
As workaround you can either switch to cygwin g++
(recommended) or comment out the preprocessor macros which redefine __attribute__ in the _mingw.h header file.
mingw.h:
-------------
...
//#undef __attribute__
...
//# define __attribute__(x) /* nothing */ ...
-------------
Hope this helps,
Georg
> -----Ursprüngliche Nachricht-----
> Von: aspectc-user-bounces at aspectc.org
> [mailto:aspectc-user-bounces at aspectc.org] Im Auftrag von
> gabrielalexm at yahoo.com
> Gesendet: Montag, 12. Dezember 2005 22:12
> An: aspectc-user at aspectc.org
> Betreff: [aspectc-user] problem with MinGW
>
> Hi,
> I want to try AspectC++ in Windows. I'm using MinGW
> g++. I tried with versions 3.4.2 and 3.4.4. When I try
> to make the AC++ examples I get several error messages like the
> following ones:
>
> C:\aop\ac>make
> ac++ -v1 --config puma.config -Iexamples/Action
> -pexamples/Action -dexamples/Act
> ion-out
> * Running ac++ 1.0pre1
> * Simple Dependency Check
> * Handling Translation Unit `main.cc'.
> C:/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/stdio.h:163:
> error: invalid declaration near token `FILE'
> C:/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/stdio.h:178:
> error: invalid declaration near token `fopen'
>
> I have no problem using ac++ in linux though.
>
> Any ideas?
>
> Thanks!
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user
>
More information about the aspectc-user
mailing list