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
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
."
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
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
." /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/include/varargs.h:5:2: #error "Revise your code to use
."
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
participants (3)
-
Jerry Feldman
-
Martin Llanos
-
Stefan Hundhammer