va_list,va_start,va_end

Alex Feldman al.feldman@sangoma.com
Wed Sep 5 13:56:00 GMT 2001


Hello

In addition to my question, I trying to compile this program:

#include <stdio.h>
#include <stdarg.h>

void proc_add_line(char*frm, ...)
{
	va_list va_arg;

	va_start(frm, va_arg);
	vprintf(frm, va_arg);
	va_end(va_arg);
}
int main()
{
proc_add_line("Test");
}

I received the follow errors:
	test.c: In function `proc_add_line':
	test.c:6: parse error before `__builtin_va_arg'
	test.c:8: parse error before `)'
	test.c:9: parse error before `)'
	test.c:10: parse error before `)'

The same code compiled in previous version of GCC.

what's wrong?

Thank you very much.
Alex



More information about the Gcc-bugs mailing list