Mail Archives: djgpp/2002/05/03/17:59:56
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 -