www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/11/07:13:04

Date: Thu, 11 May 2000 13:16:49 +0200 (MET DST)
From: Hans Yperman <Hans DOT Yperman AT rug DOT ac DOT be>
Message-Id: <200005111116.NAA10713@eduserv1.rug.ac.be>
To: djgpp AT delorie DOT com
Subject: Re: djgpp
Newsgroups: comp.os.msdos.djgpp
X-Newsreader: TIN [version 1.2 PL2]
Reply-To: djgpp AT delorie DOT com

In article <20000508232742 DOT 27109 DOT cpmta AT c012 DOT sfo DOT cp DOT net> you wrote:
: djgpp AT delorie DOT com
: hello djgpp laborants!

: 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 


I got the same problem in rhide when i added both an XXX.c and the XXX.h files. Rhide then linked XXX.o
twice. I solved this relatively easy: 
First, i select XXX.h. Now there is a menu option 'Local options' (I think in 'Project', but i
dont run rhide here, so i cannot check this. Excuse me if a part of my explanation is wrong), where i
a) removed the XXX.o filename (NOT the XXX.h) from the textfield
b) checked ' Exclude from link'
c) set compile type to 'none'
After a 'recompile everything' and a 'link', everything works fine, and stays working fine.

- Raw text -


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