compile error on gcc version 3.1, 3.2
Chen, Leya
leya.chen@tw.unisys.com
Fri Jan 24 09:19:00 GMT 2003
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)
More information about the Gcc-help
mailing list