[aspectc-user] Problem with doing simple weaving on FreeBSD
Olaf Spinczyk
Olaf.Spinczyk at informatik.uni-erlangen.de
Tue Jan 31 15:11:27 CET 2006
Hi Carsten,
the reason is that the ac++ parser treats __wchar_t as a keyword. It is
equivalent with wchat_t.
At the moment I don't remember the reason. Either some g++ version or
VC++ has to treat it as a keyword, too. Thank you for reporting this
problem. We'll look into it.
Meanwhile you might try the command line option "-D__wchar_t
no__wchar_t" as a workaround.
- Olaf
Carsten V. Munk wrote:
>
> When using #include <sys/types.h> in a simple program:
>
> #include <sys/types.h>
>
> int main(int argc, char *argv[])
> {
> return 0;
> }
>
> , and trying to compile using ag++ (1.0pre2), it errors with
>
> /usr/include/sys/_types.h:80: error: invalid type specified in declaration
> error: Execution failed: "ac++" --config "puma.config" -p. -c "bar.cc"
> -o "bar.acc"
>
> The lines mentioned are:
> 78: typedef int __ct_rune_t; /* arg type for ctype funcs */
> 79: typedef __ct_rune_t __rune_t; /* rune_t (see above) */
> 80: typedef __ct_rune_t __wchar_t; /* wchar_t (see above) */
> 81: typedef __ct_rune_t __wint_t; /* wint_t (see above) */
>
>
> I've traced this down to fail on this specific example, which the
> FreeBSD system include files use in these lines:
>
> typedef int foo_t;
> typedef foo_t __wchar_t;
>
> foo.cc:2: error: invalid type specified in declaration
> error: Execution failed: "ac++" --config "puma.config" -p. -c "foo.cc"
> -o "foo.acc"
>
> Is the inability to declare a type with type __wchar_t the fault of the
> FreeBSD include files (since they're problematic?) or is it a bug in
> AspectC++? The examples compile fine in g++
>
> Regards,
> Carsten Munk
> _______________________________________________
> 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