This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]