Problems with #import <stdarg.h>

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

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux