[aspectc-user] Weaver parsing errors

Thiago A. CorrĂȘa thiagoacorrea at uol.com.br
Tue Mar 30 02:03:07 CEST 2004


Hi,

   AspectC++ weaver still has a lot of parsing problems under windows. For
VS 6, it can't parse stdlib.h ( #include <stdlib.h> in any of the examples
is a easy way to reproduce ).
    It will output:

C:\AC>ac++ -p examples\Trace -d examples\Trace-out -Iexamples\Trace
C:/Arquivos de programas/Microsoft Visual Studio/VC98/Include/stdlib.h(260):
error: invalid declaration near token `void'
C:/Arquivos de programas/Microsoft Visual Studio/VC98/Include/stdlib.h(261):
error: invalid declaration near token `void'
C:/Arquivos de programas/Microsoft Visual Studio/VC98/Include/stdlib.h(353):
error: invalid declaration near token `void'

they are, respectively:
_CRTIMP __declspec(noreturn) void __cdecl abort(void);
_CRTIMP __declspec(noreturn) void __cdecl exit(int);
_CRTIMP __declspec(noreturn) void __cdecl _exit(int);

I suppose the problem is the undocumented (?) "noreturn" keyword.

Also had problems trying to use aspect with code that includes Python.h (
Python 2.3 )


Hope this helps.

Best Regards,
   Thiago A. CorrĂȘa




More information about the aspectc-user mailing list