There is solution for this error? Source is imported from AIX. /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>." /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>." Thanks -- ********************************* * Martin Llanos * * martinllanos@gmail.com * *********************************
On Thursday 10 February 2005 12:52, Martin Llanos wrote:
There is solution for this error? ...
The error message says it:
#error "Revise your code to use <stdarg.h>."
This is ISO C compliant. "varargs" is a leftover from K&R compiler times. See "man stdarg" for details how to migrate. CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SUSE Linux Products GmbH Nuernberg, Germany
On Thursday 10 February 2005 6:52 am, Martin Llanos wrote:
There is solution for this error? Source is imported from AIX.
/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
On Thursday 10 February 2005 7:08 am, Stefan Hundhammer wrote:
This is ISO C compliant. "varargs" is a leftover from K&R compiler times. See "man stdarg" for details how to migrate. Just a bit more background. As Stefan says, varargs is obsolete and was never part of the C standard. In ANSI C group defined stdargs in the 1989 C standard. This is similar to varargs, but more effective since is also support the use of elipses as well as functions such as vprintf(3) that take a va_list as an argument.
If you have a lot of ancient legacy code, your options are to update the code to be ANSI 89 or ISO 1999 compliant. Or, you can grab an old version of GCC, such as 2.95, but you would need not only the compiler but the entire compilation environment. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
participants (3)
-
Jerry Feldman
-
Martin Llanos
-
Stefan Hundhammer