www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/04/06:32:25

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Jorg" <Jorg DOT Daniels AT pandora DOT be>
Newsgroups: comp.os.msdos.djgpp
References: <ihBy8.42973$Ze DOT 6972 AT afrodite DOT telenet-ops DOT be> <aaj31g$h17$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20020503165044 DOT 00bc9118 AT pop DOT hotpop DOT com>
Subject: Re: Rhide: multiple definition problem
Lines: 71
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: <5mOA8.58080$Ze.8785@afrodite.telenet-ops.be>
Date: Sat, 04 May 2002 10:03:45 GMT
NNTP-Posting-Host: 213.119.36.146
X-Complaints-To: abuse AT telenet DOT be
X-Trace: afrodite.telenet-ops.be 1020506625 213.119.36.146 (Sat, 04 May 2002 12:03:45 MET DST)
NNTP-Posting-Date: Sat, 04 May 2002 12:03:45 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

I've removed my .h files from the project and it works fine now.

Thanks for your time.

Jorg


"José L. Sánchez" <jlsgarrido AT hotpop DOT com> schreef in bericht
news:5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20020503165044 DOT 00bc9118 AT pop DOT hotpop DOT com...
> At 07:20 p.m. 03/05/2002 +0000, you wrote:
> >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.
>
> Try to include only yours *.cpp files in the project. The multiple
> definition problem appears because your .h files are  included in project.
>
>
> >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.
>
> Well..., if you need help for someone, you must be understand that someone
> needs complete information, not only a vague description.
>
> Jose L.
>
>
> >Thanks
> >
> >Jorg
> >
> >"Hans-Bernhard Broeker" <broeker AT physik DOT rwth-aachen DOT de> schreef in
bericht
> >news:aaj31g$h17$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE...
> > > Jorg <Jorg DOT Daniels AT pandora DOT be> 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.
>
>


- Raw text -


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