nano2
August 28th, 2007, 10:13 AM
Hi ,
Having some difficulty in compiling a program
that has the following
#if defined (__STDC__) &&defined (HAVE_VPRINTF)
# include <stdarg.h>
#else
#include <varargss.h>
#endif
Now I want the Gcc to use stdarg.h
and i have the env set to do that
AR="c++"
CC="gcc"
CPPFLAGS="-D__STDC__ -DHAVE_VPRINTF"
CXX="c++"
CXXFLAGS="-D__STDC__ -DHAVE_VPRINTF"
I am using gcc4.1.2 ubuntu 7.04 .
Anyone with any ideas how to overcome this error
LIBPATH=xxx ; unset LIBPATH ; \
gcc -I../../../include -o ../../../bin/idlcpp cccp.c cexp.c
In file included from cccp.c:184:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
Any ideas out there how i can force it to pick up stdarg.h
Thanks in advance .
Having some difficulty in compiling a program
that has the following
#if defined (__STDC__) &&defined (HAVE_VPRINTF)
# include <stdarg.h>
#else
#include <varargss.h>
#endif
Now I want the Gcc to use stdarg.h
and i have the env set to do that
AR="c++"
CC="gcc"
CPPFLAGS="-D__STDC__ -DHAVE_VPRINTF"
CXX="c++"
CXXFLAGS="-D__STDC__ -DHAVE_VPRINTF"
I am using gcc4.1.2 ubuntu 7.04 .
Anyone with any ideas how to overcome this error
LIBPATH=xxx ; unset LIBPATH ; \
gcc -I../../../include -o ../../../bin/idlcpp cccp.c cexp.c
In file included from cccp.c:184:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
Any ideas out there how i can force it to pick up stdarg.h
Thanks in advance .