[aspectc-user] Weaver parsing errors

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Tue Mar 30 09:40:43 CEST 2004


Hi,

Thiago A. CorrĂȘa wrote:
> 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

Although you can use the --vc to avoid these parsing problems we do 
*not* recommend to use ac++ with VC6 (see section 4.2.3) of the compiler 
manual. This compiler won't be able to compile all of the (standard 
complient) code which is generated by ac++.

Best Regards,

Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3142 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20040330/8c638290/attachment.bin>


More information about the aspectc-user mailing list