Date: Thu, 22 Oct 1998 10:22:43 +0300 (EDT) From: Toni Rasanen X-Sender: torasane AT tuomi DOT oulu DOT fi To: djgpp AT delorie DOT com Subject: Doubly-defined variables In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Reply-To: djgpp AT delorie DOT com Does anyone have any ideas why some of my variables seem to get defined two times, first occurance being in sources they definitely are not in... I use a .h -file to define the variables (a really stupid vay, but...), with #ifdefs trying to make sure they won't be defined again. In .h, there is nothing but variables (and they aren't defined extern). I use those variables in various .c -files, as they are global. Then I have in all .c's that use those variables 'vars.h' included... eg. in 'main.c': #include "many_others.h" #include "gfx.h" #include "vars.h" in 'gfx.c': #include