Gotta love it



 DEVELOP > c-Plus-Plus > Gotta love it

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Noah Roberts"
Date: 29 Mar 2006 05:20:51 PM
Object: Gotta love it
You just have to love how C++ generates errors so you can find out what
you did wrong. Such as in this case...
class DComponent : public DGenericNode
{
public:
//DComponent(const DNode & node) : DGenericNode(node) {}
DComponent(const DComponent & copy) : DGenericNode(copy) {}
c:\src\PIPE-FLO 32\DComponent.h(12) : error C2065: 'copy' : undeclared
identifier
c:\src\PIPE-FLO 32\DComponent.h(12) : fatal error C1903: unable to
recover from previous error(s); stopping compilation
I mean hell, if I had known copy wasn't declaired maybe I would declare
it...good thing the compiler told me what I was doing wrong so I could
fix it.
Sometimes days just go bad. Not much is harder than debugging header
files. I ran into trouble and instead of skirting the issue as I have
always convinced myself I needed to do in the past I went ahead and
dove head first into a pool of header spagetti and tried to unwind
it...glad the compiler is such great help or life would be difficult.
.

User: "red floyd"

Title: Re: Gotta love it 29 Mar 2006 06:04:27 PM
Noah Roberts wrote:

You just have to love how C++ generates errors so you can find out what
you did wrong. Such as in this case...

class DComponent : public DGenericNode
{
public:
//DComponent(const DNode & node) : DGenericNode(node) {}
DComponent(const DComponent & copy) : DGenericNode(copy) {}


c:\src\PIPE-FLO 32\DComponent.h(12) : error C2065: 'copy' : undeclared
identifier
c:\src\PIPE-FLO 32\DComponent.h(12) : fatal error C1903: unable to
recover from previous error(s); stopping compilation


Try a different compiler... It's not the language's fault.
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER