[aspectc-user] Re: Weaver parsing errors
Thiago A. Corrêa
thiagoacorrea at uol.com.br
Tue Mar 30 02:24:19 CEST 2004
sorry, looks like --vc solves the problem described, althought now it's
template parsing problems again *g*
Qt's qptrlist.h:
c:/qt/3.3.1/include/qptrlist.h(148): error: redefinition of
`QPtrList::deleteItem'
c:/qt/3.3.1/include/qptrlist.h(139): previously defined here
c:/qt/3.3.1/include/qwinexport.h(109): error: invalid declaration near token
`<'
c:/qt/3.3.1/include/qstrlist.h(52): error: invalid declaration near token
`<'
c:/qt/3.3.1/include/qwinexport.h(127): error: invalid declaration near token
`<'
c:/wolfpack/wolfpack/console.h(72): error: invalid member declaration near
token `commandMutex'
c:/qt/3.3.1/include/qptrvector.h(104): error: redefinition of
`QPtrVector::deleteItem'
c:/qt/3.3.1/include/qptrvector.h(95): previously defined here
c:/qt/3.3.1/include/qdict.h(95): error: redefinition of `QDict::deleteItem'
c:/qt/3.3.1/include/qdict.h(86): previously defined here
c:/wolfpack/wolfpack/network.h(77): error: invalid member declaration near
token
`mutex'
- Aborting
it thinks that (qptrlist.h:148):
template<class type> inline void QPtrList<type>::deleteItem(
QPtrCollection::Item d )
as in:
template<class type> inline void QPtrList<type>::deleteItem(
QPtrCollection::Item d )
{
if ( del_item ) delete (type *)d;
}
is a redeclaration, it can't figure that it's acctually the implementation.
:(
----- Original Message -----
From: "Thiago A. Corrêa" <thiagoacorrea at uol.com.br>
To: <aspectc-user at aspectc.org>
Sent: Monday, March 29, 2004 9:03 PM
Subject: Weaver parsing errors
> 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