delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/16/13:16:58

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Error: multiple definition when creating class
Date: 16 Aug 2001 11:55:45 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 18
Message-ID: <9lgcc1$llu$1@nets3.rz.RWTH-Aachen.DE>
References: <9ldq59$2rs$1 AT news DOT netmar DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 997962945 22206 137.226.32.75 (16 Aug 2001 11:55:45 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 16 Aug 2001 11:55:45 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

You're using RHIDE, right? The problem you have is a typical case of
using it a bit incorrectly.

ibell AT abacus DOT co DOT uk wrote:
[...]
> Creating:  fooBar.h

This is the first sign of the problem.

> Error: fooBar.o:  In function 'FooBar::FooBar(void)':
> fooBar.cpp(7)  Error: multiple definition of 'FooBar::FooBar(void)':
> o:foobar.cpp(7) Error:first defined here

You put too many things into the RHIDE project list. *Only* fooBar.cpp
should go into that.  Not fooBar.o, not fooBar.h.
-- 
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