[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: open office

oly@tkk.att.ne.jp wrote:
> ../../unxlngppc.pro/obj/cpp.o: In function `error':
> ../../unxlngppc.pro/obj/cpp.o(.text+0xcdc): undefined reference to `__va_arg_type_violation'

The problem is that according to ANSI C, 
the first argument to va_arg should be the type after
the default promotion. Simply stated, one can't
use va_arg (short, ap) but must use va_arg (int, ap).
With optimization turned on, GCC is able to (kind of)
detect such cases and that's the error you've got.
In short, StarOffice source is non-compliant.


Reply to: