Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: brunobg AT geocities DOT com (Bruno Barberi Gnecco), djgpp AT delorie DOT com Date: Wed, 29 Jul 1998 14:07:05 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Compiling multiple files In-reply-to: <35bf288f.1606540@news3.newscene.com> Precedence: bulk brunobg AT geocities DOT com (Bruno Barberi Gnecco) wrote: > I wrote a program made of several files, and when I tried to compile (using > RHIDE), it returned: > Error: config.o: In function `loadconfig': > config.c(8) Error: multiple definition of `loadconfig' > o:config.c(8) Error: first defined here > Error: config.o: In function `newconfig': > config.c(24) Error: multiple definition of `newconfig' > o:config.c(24) Error: first defined here > Error: config.o(.data+0x0):config.c: multiple definition of `defaultprefs' > Error: config.o(.data+0x0):config.c: first defined here > etc... > For all functions! The I tried to compile using gcc - o file.exe *.o, and the > result was: > > main.o(.data+0x0):main.c: multiple definition of `defaultprefs' > config.o(.data+0x0):config.c: first defined here > menu.o: In function `about': > menu.c:386: multiple definition of `about' > main.o(.data+0x70):main.c: first defined here > d:/djgpp/bin/ld.exe: Warning: type of symbol `_about' changed from 114 to 33 in > menu.o > menu.o(.data+0x0):menu.c: multiple definition of `defaultprefs' > config.o(.data+0x0):config.c: first defined here > > What's the problem? Are you including .o files in your project? Put only .c files. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013