From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,31c0457c1c47fc2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-20 14:21:17 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Have you ever had a bug caused by... Date: 20 Oct 2001 14:21:16 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0110201321.3a2995e1@posting.google.com> References: <27085883.0110191714.784d3d25@posting.google.com> <3BD0DD8D.E05F85BC@worldnet.att.net> <9qrfc30rvj@drn.newsguy.com> <9qrmjb$pft$1@wanadoo.fr> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1003612877 8354 127.0.0.1 (20 Oct 2001 21:21:17 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 Oct 2001 21:21:17 GMT Xref: archiver1.google.com comp.lang.ada:14976 Date: 2001-10-20T21:21:17+00:00 List-Id: "Bertrand Augereau" wrote in message news:<9qrmjb$pft$1@wanadoo.fr>... > > In the world of C/C++ and even Java, this problem is so common. Makefiles > > are used to try to prevent this, but for anything more complex than a > > simple project, very few programmers know enough about Makefiles to > > get all the dependencies done right. gnatmake does all this work for > > you. > > I think gnatmake is compiler specific, so you can say that running the gnu > preprocessor with flag -M would generate a Makefile for a set of C or C++ > sources, which is almost equivalent. Sure, but it is easy to build an inconsistent program in C or C++, makefile checking is insufficient, it tells you when you need to compile a new source file, but if you go back to an older version of a source file, you won't be told, and for example you can have a program where some units are built with one version of a header, and some with another. That can't happen in Ada.