From: kagel AT quasar DOT bloomberg DOT com Date: Wed, 4 Sep 1996 13:20:24 -0400 Message-Id: <9609041720.AA02540@quasar.bloomberg.com > To: ILGES AT cc DOT uab DOT es Cc: djgpp AT delorie DOT com In-Reply-To: <01I937U2638O00D67E@cc.uab.es> (ILGES@cc.uab.es) Subject: Re: Declaring global arrays in a multisource project Reply-To: kagel AT dg1 DOT bloomberg DOT com Date: Wed, 04 Sep 1996 17:33:15 +0000 From: "x DOT pons AT cc DOT uab DOT es" In a multi-source project I have a global array, declared as: char my_global_array[256]; in one of the modules. Which is the best way of declaring it on the other modules? extern char my_global_array[256]; extern char *my_global_array; extern char my_global_array[]; extern char my_global_array[256]; Extern declarations MUST exactly match the corresponding global definition, with the exception of any initializer clause. The variable my_global_array is NOT a pointer it is an array and you cannot declare an undimensioned array except as an automatic argument, so.... -- Art S. Kagel, kagel AT quasar DOT bloomberg DOT com A proverb is no proverb to you 'till life has illustrated it. -- John Keats