Message-ID: <199807221302040660.00B27239@pogwizd.tcs.uni.wroc.pl> In-Reply-To: References: Date: Wed, 22 Jul 1998 13:02:04 +0200 From: "Pawel Kowalski" To: eliz AT is DOT elta DOT co DOT il, pk AT tcs DOT uni DOT wroc DOT pl Cc: djgpp AT delorie DOT com Subject: Re: Compilation errors. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Precedence: bulk *********** REPLY SEPARATOR *********** On 98-07-22, at 11:46, Eli Zaretskii wrote: >On Wed, 22 Jul 1998, Pawel Kowalski wrote: > >> Ok, graphics.c: >> #47: int var1; /* ................ */ >> #48: (empty line) >> #49: int var2; /* ................ */ >> >> theese lines are not in any function. >> o:graph.c: (no such file) >> graph.c: >> #56: int gr_init(char driver, char mode) >> #57: { >> #58: free(gr_buffer); >> >> I checked it once more, and I'm sure now, that there are no same-name files >> in the project. (ie. graph.asm and graph.c) > >This seems more and more strange as we go. It's as if the linker gets a >garbled command line. > >Please add -v to the compiler switches and post everything it prints. Here it comes... ld version 2.7 (with BFD 2.7) graphics.o: In function `gr_init': graphics.c:48: multiple definition of `gr_init' graph.o:graph.c:57: first defined here graphics.o: In function `gr_screen_update': graphics.c:73: multiple definition of `gr_screen_update' graph.o:graph.c:82: first defined here keyboard.o(.text+0x0):keyboard.s: multiple definition of `keyboard_map' keyb.o(.text+0x0):keyboard.s: first defined here keyboard.o(.text+0xe0):keyboard.s: multiple definition of `keyboard_init' keyb.o(.text+0xe0):keyboard.s: first defined here keyboard.o(.text+0x150):keyboard.s: multiple definition of `keyboard_close' keyb.o(.text+0x150):keyboard.s: first defined here keyboard.o(.text+0x190):keyboard.s: multiple definition of `keyboard_chain' keyb.o(.text+0x190):keyboard.s: first defined here