This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problems with #import <stdarg.h>
- From: Ronald Pijnacker <pijnacker at dse dot nl>
- To: gcc-help at gcc dot gnu dot org
- Cc: Ronald Pijnacker <pijnacker at dse dot nl>
- Date: Thu, 23 Jul 2009 12:39:20 +0200
- Subject: Problems with #import <stdarg.h>
Hi all,
When I include stdarg.h after stdio.h using objc's #import I get the error:
$ gcc -c stdarg.m
stdarg.m: In function 'func':
stdarg.m:6: error: 'va_list' undeclared (first use in this function)
stdarg.m:6: error: (Each undeclared identifier is reported only once
stdarg.m:6: error: for each function it appears in.)
stdarg.m:6: error: expected ';' before 'ap'
stdarg.m:7: error: 'ap' undeclared (first use in this function)
when I switch the two around, it is ok.
Thanks,
Ronald