Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: #include in Whitesmith Message-ID: <6758@brl-smoke.ARPA> Date: Sun, 29-Nov-87 02:56:26 EST Article-I.D.: brl-smok.6758 Posted: Sun Nov 29 02:56:26 1987 Date-Received: Tue, 1-Dec-87 04:56:28 EST References: <10568@brl-adm.ARPA> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 15 In article <10568@brl-adm.ARPA> ADLER1%BRANDEIS.BITNET@WISCVM.WISC.EDU writes: >Question: What is different about Whitesmith's C Compiler ... It's probably more strict about checking for C usage violations. I suspect that "types.h" is attempting to typedef some data types. It is an error to typedef the same name more than once in the same scope. > ...and what can my friend do about this ? Either around the invocations of "types.h" or, better, inside "types.h" around everything useful, use one-time flag brackets as in: #ifndef ALREADY_DEFINED /* this name needs to be unique */ #define ALREADY_DEFINED /* typedefs etc. go here */ #endif