www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/06/22:01:56

Message-ID: <38754B78.36D7DCC7@caresystems.com.au>
Date: Fri, 07 Jan 2000 12:12:10 +1000
From: leon <Leon AT caresystems DOT com DOT au>
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: C++, Multiple Files, Classes
References: <3873FF7B DOT DFB48EA2 AT wt DOT net> <38751224 DOT 65715732 AT wt DOT net>
Reply-To: djgpp AT delorie DOT com

Aaron Chernosky wrote:

> Okay... that's fixed, have all the stuff in the same file (the class and
> the funcs):
>
> -- header.cpp --
>
> class MyClass {
>   public:
>     MyClass();
>     ~MyClass();
> };
>
> MyClass::MyClass() { }
>
> MyClass::~MyClass() { }
>
> ----------------
>
> ...but now it's telling me that each of the member functions is defined
> multiple times... which is absurd to me, but wut's up here?
>
> Aaron C

am sorry - if wrong - did not read previous posts but from my limited
understanding - multiple definition - when you include source file more than
once in your project (exception = template cpp files with definitions of
template methods).


- Raw text -


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