This is the mail archive of the gcc-bugs@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: gcc-2.95.2, Next 4.2, "gen" programs won't compile


 > From: James McKelvey <mckelvey@fafnir.com>
 >  
 > NeXT Cube running Openstep 4.2.
 > gmake CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
 > -fno-implicit-templates' bootstrap
 >  
 > The "gen" group won't compile because "free" is not defined. I was
 > able to  
 > fix it by adding:
 >  
 > #include <stdlib.h>
 >  
 > You guys will probably fix it though by adding the include to config.h
 > and  
 > hconfig.h.
 >  
 > The "gen" files affected:
 >  
 > genattr.c
 > genattrtab.c
 > gencodes.c
 > genconfig.c
 > genemit.c
 > genextract.c
 > genflags.c
 > genopinit.c
 > genoutput.c
 > genpeep.c
 > genrecog.c
 >  
 > There are a few more problems with the gen*'s that are not common to
 > all. I will report those separately.


Amost all files, including the gen*.c ones, include system.h.  This
file in turn includes system headers when the appropriate HAVE_*_H
macro is defined by the autoconf configure script.

Rather than manually add these headers to each individual file, your
time IMHO would be better spent figuring out why configure/system.h
didn't get stdlib.h, etc, for you.

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


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