This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compile error on gcc version 3.1, 3.2
- From: "Chen, Leya" <leya dot chen at tw dot unisys dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 24 Jan 2003 20:19:47 +1100
- Subject: compile error on gcc version 3.1, 3.2
Hello,
I try to use the GCC 2.953 , 3.1 , 3.2 to compile my C program on Solaris
7(32bit),the source code I quote below will cause the gcc 3.1& gcc 3.2
compile error, but the gcc version 2.953 works find .
do you have suggestion on this ?
source code
---------------------------------
"
err_ret(va_alist)
{
va_list args;
char *fmt;
va_start(args);
fmt = va_arg(args, char *);
vsprintf(emesgstr, fmt, args);
va_end(args);
:
:
:
return;
}
"
-----------------------------------------------------------------
compile option in make file:
HDIR = -I../h
LDIR = -L../obj
LIBS = -lcus -lsocket -lnsl
CC = gcc
CFLAGS = -c -DBKCM -DLBOT -DBOTW -DBOTW_60
OBJ1 = sock.o error.o cus_snd.o Mfincome.o
OBJ2 = sock.o error.o cus_rcv.o Mfoutgo.o
.c.o:
$(CC) $(HDIR) $(CFLAGS) $<
:
:
:
-------------------------------------------------------------------------
Many thanks& Regards,
Leya Chen ( leya.chen@tw.unisys.com)