Sender: crough45 AT amc DOT de Message-Id: <97Jul31.110640gmt+0100.17042@internet01.amc.de> Date: Thu, 31 Jul 1997 10:10:10 +0100 From: Chris Croughton Mime-Version: 1.0 To: eldredge AT ap DOT net Cc: djgpp AT delorie DOT com Subject: Re: sizeof() in #if Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Nate Eldredge wrote: > Well, there's always the method of asking the user! My approach would > be to define $(CC) = gcc at the top of the makefile, and let the user change > it if they want. I really don't like that when it's done to me, so I don't want to do it to other people. A better (still not good) way is to provide N makefiles, for each compiler known about. > The better question is, what compiler besides GCC would be available that > would work? The programs I'm interested in, most. Borland supports a "flat model" code generation now, as do all of the Win32 ones (in console mode), and they mostly support C++ to a similar standard as gcc as well (all slightly different, of course, as is inevitable while the standard still isn't ratified). I try not to use the gcc extensions precisely because they are not portable. in fact, there's no guarantee that they'll be portable across the next version of gcc even. I aim for as complete portability (modulo machine dependencies like single-character input from the console) as possible, with the few system related bits in special modules where they can be easily changed. Chris