Date: Tue, 26 Jan 1999 18:13:21 +0100 From: Hans-Bernhard Broeker Message-Id: <199901261713.SAA07888@acp3bf.physik.rwth-aachen.de> To: djgpp AT delorie DOT com Subject: Re: Some Questions? Newsgroups: comp.os.msdos.djgpp Organization: RWTH Aachen, III. physikalisches Institut B X-Newsreader: TIN [version 1.2 PL2] Reply-To: djgpp AT delorie DOT com In article <36A9A62D DOT 18E35329 AT mbox2 DOT singnet DOT com DOT sg> you wrote: > when i compile my C++ program, it was fine for the first exercise > that i do(rev_6.o) then i went on continuing to compile > rev_7.o. There was no error at all. But when i run it, it prompt me > these error. How to correct it. > creating aout.exe > Error: Rev_7.o: In finction 'main' > Error: Rev_7.cc(.text+0*24): multiple definition of 'main' > Error: Rev_6.o(.text+0*20): rev_6.cc first defined there. This indicates that you tried to link both Rev_6.cc and Rev_7.cc into *one* single executable. This is very certainly not what you intended. You should have started a new project, with only Rev_7.cc in it, or at least remove Rev_6.cc from the project. > I got to exit rhide, then go back in to compile my homework. Is > there any way to correct it so that i will not have to exit and go > back to rhide everytime?? Learn how to work with RHIDE projects. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.