ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/29/06:46:23

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Rhide: multiple definition problem
Date: 29 Apr 2002 09:16:32 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 24
Message-ID: <aaj31g$h17$1@nets3.rz.RWTH-Aachen.DE>
References: <ihBy8.42973$Ze DOT 6972 AT afrodite DOT telenet-ops DOT be>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1020071792 17447 (29 Apr 2002 09:16:32 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 29 Apr 2002 09:16:32 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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