This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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) 


 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]