Path: utzoo!attcan!uunet!cs.utexas.edu!usc!samsung!munnari.oz.au!metro!natmlab.dap.csiro.au!ditsyda!evans From: evans@ditsyda.oz (Bruce.Evans) Newsgroups: comp.os.minix Subject: Re: Problems building cpp and cppmake (for building 32 bit system) Message-ID: <2671@ditsyda.oz> Date: 29 Jun 90 15:22:35 GMT References: <3246@leah.Albany.Edu> Organization: CSIRO DIT Sydney, Australia Lines: 28 in article <3246@leah.Albany.Edu>, boehme@leah.Albany.Edu (Eric M. Boehm) says: > I have tried several times to build cpp and cppmake. cpp seems to > compile okay, but when I process makefile.cpp, minix is replaced by the > number 1. cpp is probably predefining minix as 1. I hade this problem with Gnu cpp predefining i386 (there is a directory i386 in the 32-bit system makefiles). For use with cppmake, it is safest not to predefine anything. Note that the makefile for cppmake itself effectively predefines _MINIX and _V7. & A last note, when building the 32 bit system, bcc complained about & redefinition of NULL. I had to change unistd.h and stdlib.h and some & others from: & & #define NULL ((void*) 0) & & to & & #ifndef NULL & #define NULL ((void *) 0) & #endif The header files with void* must be old - it is spelled consistently as void * in 1.5.10. The differing white space is not significant to C but unfortunately the preprocessor does not know that. -- Bruce Evans evans@ditsyda.syd.dit.csiro.au