cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/29/13:02:12

Message-Id: <m0z1ZXR-000S4VC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
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
Subject: Re: Compiling multiple files
In-reply-to: <35bf288f.1606540@news3.newscene.com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019