X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Jorg" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Rhide: multiple definition problem Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <1qBA8.57578$Ze.8804@afrodite.telenet-ops.be> Date: Fri, 03 May 2002 19:20:29 GMT NNTP-Posting-Host: 213.224.243.85 X-Complaints-To: abuse AT telenet DOT be X-Trace: afrodite.telenet-ops.be 1020453629 213.224.243.85 (Fri, 03 May 2002 21:20:29 MET DST) NNTP-Posting-Date: Fri, 03 May 2002 21:20:29 MET DST Organization: Telenet Internet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You're right, of course. I didn't mentioned how I used Rhide. But since i've done nothing unusual than just included my .cpp and .h files to my project, and i'm not a genius, i thougt there wasn't more to mention. I just installed djgpp and rhide with all standard options unchanged, wrote and included those files, and hit compile & un. No .o files included. I use Windows Me. About your remark:my program was just a testprogram, nothing more, nothing less. And if even this simple program doesn't work, well then it's no use trying something bigger. Thanks Jorg "Hans-Bernhard Broeker" schreef in bericht news:aaj31g$h17$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE... > Jorg wrote: > > > The problem is: I always get multiple definition errors of all my functions, > > classes and main(). Here is my post to comp.lang.c++, and the answer: > > You've omitted the crucial part of the info needed to answer this. > The previous answer from c.l.c++ said you're using your compiler (or > IDE, in your case RHIDE) wrongly --- but you don't give the slightest > hint how you *did* use it. What exactly did you do in RHIDE? > > The usual reason for this kind of error is to list both the .cpp and > the .o files in your RHIDE project --- don't do that. The .o files > don't belong in there. > > A side issue: I'm totally at a loss what you think your "m.h" is going > to achieve. It's completely useless as it is. You may as well get > rid of both the file itself and all the lines #include'ing it. > > > > > -- > Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) > Even if all the snow were burnt, ashes would remain.