delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/09/07:04:38

Date: Tue, 9 May 2000 11:53:02 +0200 (MET DST)
From: pad2369 <pad2369 AT iperbole DOT bologna DOT it>
Message-Id: <200005090953.LAA13513@maggiore.iperbole.bologna.it>
To: djgpp AT delorie DOT com, frans nagel <fransrn AT altavista DOT com>
References: <20000508232639 DOT 26829 DOT cpmta AT c012 DOT sfo DOT cp DOT net>
In-Reply-To: <20000508232639.26829.cpmta@c012.sfo.cp.net>
MIME-Version: 1.0
User-Agent: IMP/PHP3 Imap webMail Program 2.0.11
Sender: pad2369 AT iperbole DOT bologna DOT it
Subject: Re: djgpp
Reply-To: djgpp AT delorie DOT com

frans nagel <fransrn AT altavista DOT com>:
> I just began learning C++ and had no problems 
> compiling and running single
> documentprojects but when I get ready to start a 
> multiple documentproject I
> get a message like this :
>
> error circ.o:In function circle::printshapename(void)
> const':
> error circ.cpp(.text +0xd8):multiple definition
> ofcircle::printshapename(void)const
> circ.o(.text+0xd8):circ.cpp:first defined here.
>
> and not just one time but all over the plate the 
> compiler is complaining
> that the object files it just made are overriding the 
> cpp.files.
> so how do I get it through to the compiler that I 
> don't want it to do
> that?I 'd appreciate your help
> fransrn AT altavista DOT com

It seems like you are adding both .o and .cpp files
to your project. This is not necessary: just put .cpp
files in your project (I assume you are using rhide,
aren't you?)

There is another possibility: are #include'ing 
circle.cpp into other .cpp files?

ciao
  Giacomo
------------------------------------------------------
Giacomo Degli Esposti - pad2369 AT iperbole DOT bologna DOT it





- Raw text -


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