This is the mail archive of the gcc@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]

Re: __i386__ not defined


#if __i386__
#endif

Complete every if with endif.
Lesson learned whin I first started programming in C.
And BASIC and Assembler
--- Roger Collins <roger@ProProject.com> wrote:
> 
> I'm trying to compile the latest snapshot on
> Unixware 2.1
> (i386-pc-sysv4.2uw2.1).
> 
> Following the textbook native procedure on a clean
> download (20010115), it
> gets a compile
> error because __i386__ is not defined.
> 
> The line of code that causes the error reads
> 
> #if __i386__
> 
> The error message is "#if with no expression."
> 
> Any ideas on how to correct this?  Pointers to docs
> on platform
> configuration?
> 
> Here's the error message I get...
> 
> ./xgcc -B./
>
-B/elmer/elmer4/rcollins/gcc3/dist/i386-pc-sysv4.2uw2.1/bin/
> -is
> yste
> m
>
lmer/elmer4/rcollins/gcc3/dist/i386-pc-sysv4.2uw2.1/include
> -O2   -DIN_GCC
>   -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -isystem
> ./i
> nclude  -fPIC -g1  -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/elmer/e
> lmer
> 4/rcollins/gcc3/gcc-20010115/gcc
> -I/elmer/elmer4/rcollins/gcc3/gcc-20010115/
> gcc/
> .
>
-I/elmer/elmer4/rcollins/gcc3/gcc-20010115/gcc/config
> -I/elmer/elmer4/rcol
> lins
> /gcc3/gcc-20010115/gcc/../include  -DL_muldi3 -c
> /elmer/elmer4/rcollins/gcc3/gcc
> -20010115/gcc/libgcc2.c -o libgcc/./_muldi3.o
> In file included from include/limits.h:11,
>                  from
>
/elmer/elmer4/rcollins/gcc3/gcc-20010115/gcc/tsystem.h:84,
>                  from
>
/elmer/elmer4/rcollins/gcc3/gcc-20010115/gcc/libgcc2.c:37:
> include/syslimits.h:188:13: #if with no expression
> make[3]: *** [libgcc/./_muldi3.o] Error 1
> make[3]: Leaving directory
> `/elmer/elmer4/rcollins/gcc3/obj/gcc'
> 
> Cheers,
> Roger
> 
> --
> Roger Collins
> ProProject, Inc.
> www.ProProject.com -- Try our web application
> for managing time, expenses, and billing on
> projects.
> 


=====
Robert McNulty Junior
Robert McNulty Junior (C) 2000
email: bmcnultyjunior@yahoo.com
Homepage: http://www.geocities.com/bmcnultyjunior
AIM:bmcnultyjrsap
Featuring Csound compiled with a Win32/Intel Based Compiler

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