Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: CRYPTiC AT iname DOT com (CRYPTiC), djgpp AT delorie DOT com Date: Mon, 17 Nov 1997 10:26:39 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Problems with Compiling with RHIDE Precedence: bulk CRYPTiC AT iname DOT com (CRYPTiC) wrote: > Can somebody explain the following? > > I have four source files, each with a header. I've included all of > them into a RHIDE project (for easier editing), What do you mean with all of them? headers too? That's incorrect headers doesn't belong to the project in a direct way. > and told it not to compile the headers by excluding it from the link and > clearing the compile-target name. That isn't a good idea. The closed windows feature of ALT-0 is supposed to be used to recall the most recently used files when they doesn't belong to the project. > When I compile the project, all the sources are > file, but when it tries to compile the .exe file, it tells me that the > original declaration for one of my functions is a duplicate > definition! > As far as I can see, it's compiling each source file individually into > a .o file, and then using gcc to compile everything into a .exe, which > is when the error occurs. If I try to compile from the command line > with: > > gcc -ansi -pedantic -pedantic-errors -Wall -m486 -o FARGO.exe \ > -c file1.c -c file2.c ... > > everything is OK. > > What's happening? Enable the option to see what commands are RHIDE running (is in Options|Enviroment|Preferences is something like show process information (I have RHIDE in spanish ;-)) Look if RHIDE is including some strange file. I think RHIDE is double including your .o file because of the headers, but I'm not sure. Anyways, I think you must use the closed windows instead of headers in the project. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013